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.
- package/dist/Modal-C48pfGFo.js +19643 -0
- package/dist/{SortSelect-BlclOJLJ.js → SortSelect-CQHzI2M-.js} +2 -2
- package/dist/components/FormModal/ui/ModalForm.js +1 -1
- package/dist/components/Modal/index.js +1 -1
- package/dist/components/Modal/ui/Modal.js +1 -1
- package/dist/components/ModalSuccess/ModalSuccess.js +1 -1
- package/dist/components/SortSelect/hooks/useSortSelect.d.ts +1 -1
- package/dist/components/SortSelect/hooks/useSortSelect.js +1 -1
- package/dist/components/SortSelect/index.js +1 -1
- package/dist/components/SortSelect/ui/SortSelect.js +3 -3
- package/dist/components/TabSelect/ui/TabSelect.d.ts +1 -2
- package/dist/components/TabSwitcher/index.js +1 -1
- package/dist/components/TabSwitcher/ui/TabSwitcher.js +2 -2
- package/dist/components/ZoomControls/ui/ZoomControls.js +2 -2
- package/dist/main.js +2 -2
- package/dist/{useSortSelect-D7XQTmb4.js → useSortSelect-D7K1wk0E.js} +10 -10
- package/package.json +5 -5
- package/dist/Modal-DOTfWTlW.js +0 -461
|
@@ -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-
|
|
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-
|
|
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-
|
|
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,5 +1,5 @@
|
|
|
1
1
|
import { jsx as o, jsxs as c } from "react/jsx-runtime";
|
|
2
|
-
import { M as i } from "../../Modal-
|
|
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
|
|
8
|
+
containerRef: React.RefObject<HTMLDivElement>;
|
|
9
9
|
isOpen: boolean;
|
|
10
10
|
isMobile: boolean;
|
|
11
11
|
placeholder: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import "../../../index-rKuIKazb.js";
|
|
4
|
-
import "../../../useSortSelect-
|
|
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-
|
|
16
|
-
import { a as z } from "../../../SortSelect-
|
|
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,6 +1,6 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { S as v } from "../../../SortSelect-
|
|
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-
|
|
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-
|
|
14
|
-
import "../../../SortSelect-
|
|
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-
|
|
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-
|
|
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
|
|
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:
|
|
24
|
+
setSelectedOption: r,
|
|
25
25
|
setIsOpen: k,
|
|
26
|
-
containerRef:
|
|
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
|
|
35
|
-
if (
|
|
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:
|
|
38
|
+
target: { value: c }
|
|
39
39
|
};
|
|
40
40
|
_(d);
|
|
41
41
|
}
|
|
42
42
|
};
|
|
43
43
|
return { handleDocumentClick: (e) => {
|
|
44
|
-
|
|
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__ */
|
|
62
|
-
/* @__PURE__ */
|
|
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__ */
|
|
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.
|
|
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": "
|
|
30
|
-
"@types/react-dom": "
|
|
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": "
|
|
42
|
-
"react-dom": "
|
|
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",
|