stone-kit 0.0.866 → 0.0.868
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/{FilterWithSave-DzSbAFW2.js → FilterWithSave-DdPvn0L1.js} +275 -274
- package/dist/components/CheckBox/CheckBox.js +46 -43
- package/dist/components/CheckBox/CheckBox.types.d.ts +1 -0
- package/dist/components/FilterWithSave/hooks/useFilterWithSave.js +1 -1
- package/dist/components/FilterWithSave/ui/FilterWithSave.js +1 -1
- package/dist/components/FormModal/ui/ModalForm.js +1 -1
- package/dist/components/LotCard/hooks/useLotCard.js +1 -1
- package/dist/components/LotCard/index.js +1 -1
- package/dist/components/LotCard/ui/LotCard.js +1 -1
- package/dist/components/SortSelect/index.js +1 -1
- package/dist/components/SortSelect/ui/SortSelect.js +1 -1
- package/dist/components/Switcher/ui/Switcher.d.ts +1 -1
- package/dist/components/Switcher/ui/Switcher.js +44 -32
- package/dist/components/Switcher/ui/Switcher.types.d.ts +2 -0
- package/dist/components/TabSwitcher/index.js +1 -1
- package/dist/components/TabSwitcher/ui/TabSwitcher.js +1 -1
- package/dist/main.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,68 +1,70 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as i, jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as g } from "react";
|
|
3
|
-
import { NewIcon as
|
|
4
|
-
const p = "
|
|
3
|
+
import { NewIcon as n } from "../NewIcon/ui/NewIcon.js";
|
|
4
|
+
const p = "_checkbox_vuhc0_1", $ = "_checkbox__text_vuhc0_5", I = "_checkbox__elem_vuhc0_9", C = "_checkbox__hoverIcon_vuhc0_28", N = "_error_vuhc0_35", j = "_light_vuhc0_41", w = "_dark_vuhc0_44", y = "_isChecked_vuhc0_47", e = {
|
|
5
5
|
checkbox: p,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
|
|
6
|
+
checkbox__text: $,
|
|
7
|
+
checkbox__elem: I,
|
|
8
|
+
checkbox__hoverIcon: C,
|
|
9
|
+
error: N,
|
|
10
|
+
light: j,
|
|
11
|
+
dark: w,
|
|
12
|
+
isChecked: y,
|
|
13
|
+
"medium-size": "_medium-size_vuhc0_102",
|
|
14
|
+
"large-size": "_large-size_vuhc0_107",
|
|
15
|
+
"small-size": "_small-size_vuhc0_112"
|
|
16
|
+
}, L = g(
|
|
16
17
|
({
|
|
17
|
-
children:
|
|
18
|
-
isChecked:
|
|
19
|
-
error:
|
|
18
|
+
children: t,
|
|
19
|
+
isChecked: _ = !1,
|
|
20
|
+
error: a = !1,
|
|
20
21
|
modifierClassesStyle: m = [""],
|
|
21
|
-
emitIsChecked:
|
|
22
|
-
onClick:
|
|
23
|
-
variant:
|
|
24
|
-
size_s:
|
|
25
|
-
size_m:
|
|
26
|
-
size_l:
|
|
27
|
-
|
|
22
|
+
emitIsChecked: h,
|
|
23
|
+
onClick: l,
|
|
24
|
+
variant: x = "light",
|
|
25
|
+
size_s: k,
|
|
26
|
+
size_m: b,
|
|
27
|
+
size_l: u,
|
|
28
|
+
text: r,
|
|
29
|
+
...v
|
|
28
30
|
}, d) => {
|
|
29
|
-
const
|
|
30
|
-
let
|
|
31
|
-
return
|
|
31
|
+
const z = m.map((f) => e[f]).filter(Boolean).join(" ");
|
|
32
|
+
let o = "", c = "20";
|
|
33
|
+
return u ? (o = e["large-size"] || "", c = "20") : k ? (o = e["small-size"] || "", c = "12") : (o = e["medium-size"] || "", c = "16"), /* @__PURE__ */ i(
|
|
32
34
|
"label",
|
|
33
35
|
{
|
|
34
36
|
className: `
|
|
35
37
|
${e.checkbox}
|
|
36
|
-
${
|
|
37
|
-
${
|
|
38
|
-
${
|
|
39
|
-
${e[
|
|
40
|
-
${
|
|
38
|
+
${z}
|
|
39
|
+
${_ ? e.isChecked : ""}
|
|
40
|
+
${a ? e.error : ""}
|
|
41
|
+
${e[x] || ""}
|
|
42
|
+
${o}
|
|
41
43
|
`,
|
|
42
44
|
onClick: () => {
|
|
43
|
-
|
|
45
|
+
l && l();
|
|
44
46
|
},
|
|
45
47
|
children: [
|
|
46
|
-
/* @__PURE__ */
|
|
48
|
+
/* @__PURE__ */ s(
|
|
47
49
|
"input",
|
|
48
50
|
{
|
|
49
51
|
type: "checkbox",
|
|
50
52
|
ref: d,
|
|
51
|
-
checked: !!
|
|
52
|
-
onChange: () =>
|
|
53
|
-
...
|
|
53
|
+
checked: !!_,
|
|
54
|
+
onChange: () => h && h(!_),
|
|
55
|
+
...v
|
|
54
56
|
}
|
|
55
57
|
),
|
|
56
|
-
/* @__PURE__ */
|
|
57
|
-
|
|
58
|
-
|
|
58
|
+
/* @__PURE__ */ i("span", { className: e.checkbox__elem, children: [
|
|
59
|
+
_ && /* @__PURE__ */ s(
|
|
60
|
+
n,
|
|
59
61
|
{
|
|
60
62
|
name: "check",
|
|
61
63
|
size: c
|
|
62
64
|
}
|
|
63
65
|
),
|
|
64
|
-
!
|
|
65
|
-
|
|
66
|
+
!_ && /* @__PURE__ */ s(
|
|
67
|
+
n,
|
|
66
68
|
{
|
|
67
69
|
name: "check",
|
|
68
70
|
size: c,
|
|
@@ -70,12 +72,13 @@ const p = "_checkbox_68bw2_1", u = "_checkbox__elem_68bw2_5", $ = "_checkbox__ho
|
|
|
70
72
|
}
|
|
71
73
|
)
|
|
72
74
|
] }),
|
|
73
|
-
|
|
75
|
+
r && /* @__PURE__ */ s("span", { className: e.checkbox__text, dangerouslySetInnerHTML: { __html: r } }),
|
|
76
|
+
t
|
|
74
77
|
]
|
|
75
78
|
}
|
|
76
79
|
);
|
|
77
80
|
}
|
|
78
81
|
);
|
|
79
82
|
export {
|
|
80
|
-
|
|
83
|
+
L as CheckBox
|
|
81
84
|
};
|
|
@@ -11,7 +11,7 @@ import "../../Flex/ui/Flex.js";
|
|
|
11
11
|
import "../../Input/ui/Input.js";
|
|
12
12
|
import "react/jsx-runtime";
|
|
13
13
|
import "react-dom";
|
|
14
|
-
import { b as w } from "../../../FilterWithSave-
|
|
14
|
+
import { b as w } from "../../../FilterWithSave-DdPvn0L1.js";
|
|
15
15
|
import "../../GroupedInput/ui/GroupedInputs.js";
|
|
16
16
|
import "../../../index-rKuIKazb.js";
|
|
17
17
|
import "../../MetroTag/ui/MetroTag.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "../../NewIcon/ui/NewIcon.js";
|
|
3
|
-
import { F as a } from "../../../FilterWithSave-
|
|
3
|
+
import { F as a } from "../../../FilterWithSave-DdPvn0L1.js";
|
|
4
4
|
import "../../Modal/ui/Modal.js";
|
|
5
5
|
import "../../../Option-BVIm7wOW.js";
|
|
6
6
|
import "../../Button/ui/Button.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { u as B } from "../../../FilterWithSave-
|
|
3
|
+
import { u as B } from "../../../FilterWithSave-DdPvn0L1.js";
|
|
4
4
|
import "../../Button/ui/Button.js";
|
|
5
5
|
import "../../mobileButton/ui/MobileButton.js";
|
|
6
6
|
import "../../NewIcon/ui/NewIcon.js";
|
|
@@ -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/ui/Modal.js";
|
|
16
|
-
import { a as A } from "../../../FilterWithSave-
|
|
16
|
+
import { a as A } from "../../../FilterWithSave-DdPvn0L1.js";
|
|
17
17
|
import "../../GroupedInput/ui/GroupedInputs.js";
|
|
18
18
|
import "../../MetroTag/ui/MetroTag.js";
|
|
19
19
|
import "../../Select/ui/Select.js";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ISwitcherProps } from './Switcher.types';
|
|
2
2
|
|
|
3
|
-
export declare const Switcher: ({ children, isActive, onClick }: ISwitcherProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const Switcher: ({ children, isActive, onClick, isReverse, isBetween }: ISwitcherProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,37 +1,49 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { c as
|
|
4
|
-
const
|
|
5
|
-
switcherWrapper:
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
import { jsxs as a, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as o, useEffect as _ } from "react";
|
|
3
|
+
import { c as f } from "../../../index-rKuIKazb.js";
|
|
4
|
+
const v = "_switcherWrapper_1sffg_29", h = "_switcherWrapperReverse_1sffg_40", d = "_switcherWrapperBetween_1sffg_44", W = "_swiper_1sffg_48", g = "_swiperBackward_1sffg_1", l = "_swiperActive_1sffg_63", m = "_swiperForward_1sffg_1", u = "_swiperInactive_1sffg_68", I = "_swiperPoint_1sffg_73", P = "_swiperPointActive_1sffg_85", B = "_swiperInitialize_1sffg_109", e = {
|
|
5
|
+
switcherWrapper: v,
|
|
6
|
+
switcherWrapperReverse: h,
|
|
7
|
+
switcherWrapperBetween: d,
|
|
8
|
+
swiper: W,
|
|
9
|
+
swiperBackward: g,
|
|
10
|
+
swiperActive: l,
|
|
11
|
+
swiperForward: m,
|
|
12
|
+
swiperInactive: u,
|
|
13
|
+
swiperPoint: I,
|
|
14
|
+
swiperPointActive: P,
|
|
15
|
+
swiperInitialize: B
|
|
16
|
+
}, i = f.bind(e), z = ({ children: p, isActive: s, onClick: c, isReverse: w, isBetween: n }) => {
|
|
17
|
+
const r = o(!0);
|
|
18
|
+
return _(() => {
|
|
17
19
|
r.current && (r.current = !1);
|
|
18
|
-
}, []), /* @__PURE__ */
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
20
|
+
}, []), /* @__PURE__ */ a(
|
|
21
|
+
"div",
|
|
22
|
+
{
|
|
23
|
+
className: i(
|
|
24
|
+
e.switcherWrapper,
|
|
25
|
+
{ [e.switcherWrapperReverse]: w },
|
|
26
|
+
{ [e.switcherWrapperBetween]: n }
|
|
27
|
+
),
|
|
28
|
+
children: [
|
|
29
|
+
/* @__PURE__ */ t(
|
|
30
|
+
"div",
|
|
31
|
+
{
|
|
32
|
+
className: i(
|
|
33
|
+
e.swiper,
|
|
34
|
+
{ [e.swiperInitialize]: r.current },
|
|
35
|
+
{ [e.swiperActive]: s },
|
|
36
|
+
{ [e.swiperInactive]: !s && !r.current }
|
|
37
|
+
),
|
|
38
|
+
onClick: c,
|
|
39
|
+
children: /* @__PURE__ */ t("div", { className: i(e.swiperPoint, { [e.swiperPointActive]: s }) })
|
|
40
|
+
}
|
|
27
41
|
),
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
t
|
|
33
|
-
] });
|
|
42
|
+
p
|
|
43
|
+
]
|
|
44
|
+
}
|
|
45
|
+
);
|
|
34
46
|
};
|
|
35
47
|
export {
|
|
36
|
-
|
|
48
|
+
z as Switcher
|
|
37
49
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { S as y } from "../../../FilterWithSave-
|
|
3
|
+
import { S as y } from "../../../FilterWithSave-DdPvn0L1.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 h } from "./components/Flex/ui/Flex.js";
|
|
|
10
10
|
import { Input as T } from "./components/Input/ui/Input.js";
|
|
11
11
|
import { Modal as k } from "./components/Modal/ui/Modal.js";
|
|
12
12
|
import { FieldInput as F } from "./components/FieldInput/ui/FieldInput.js";
|
|
13
|
-
import { F as w, L as I, M as L, a as N, S as v } from "./FilterWithSave-
|
|
13
|
+
import { F as w, L as I, M as L, a as N, S as v } from "./FilterWithSave-DdPvn0L1.js";
|
|
14
14
|
import { GroupedInputs as j } from "./components/GroupedInput/ui/GroupedInputs.js";
|
|
15
15
|
import { Logo as y } from "./components/Logo/ui/Logo.js";
|
|
16
16
|
import { MetroTag as E } from "./components/MetroTag/ui/MetroTag.js";
|