stone-kit 0.0.192 → 0.0.193
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,3 +1,3 @@
|
|
|
1
1
|
import { ISliderNavigation } from './SliderNavigation.types.ts';
|
|
2
2
|
|
|
3
|
-
export declare const SliderNavigation: ({ indexSlide, goPrev, goNext, arr, isNeedTag, additionalClassTag, navigationClassName, additionalClassNavButton, }: ISliderNavigation) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const SliderNavigation: ({ indexSlide, isDisabledOff, goPrev, goNext, arr, isNeedTag, additionalClassTag, navigationClassName, additionalClassNavButton, }: ISliderNavigation) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,55 +1,56 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { RoundButton as
|
|
3
|
-
import { Tag as
|
|
4
|
-
import { useClientWidth as
|
|
5
|
-
import { c as
|
|
6
|
-
const
|
|
7
|
-
sliderTag:
|
|
8
|
-
},
|
|
1
|
+
import { jsxs as p, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { RoundButton as t } from "../../RoundButton/ui/RoundButton.js";
|
|
3
|
+
import { Tag as u } from "../../Tag/ui/Tag.js";
|
|
4
|
+
import { useClientWidth as h } from "../../../shared/useClientWidth.js";
|
|
5
|
+
import { c as f } from "../../../index-rKuIKazb.js";
|
|
6
|
+
const C = "_sliderTag_1rvl9_1", l = {
|
|
7
|
+
sliderTag: C
|
|
8
|
+
}, T = f.bind(l), b = ({
|
|
9
9
|
indexSlide: i,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
10
|
+
isDisabledOff: o,
|
|
11
|
+
goPrev: n,
|
|
12
|
+
goNext: d,
|
|
13
|
+
arr: a,
|
|
14
|
+
isNeedTag: m = !0,
|
|
15
|
+
additionalClassTag: c = "",
|
|
16
|
+
navigationClassName: g = "",
|
|
17
|
+
additionalClassNavButton: r = ""
|
|
17
18
|
}) => {
|
|
18
|
-
const { isDesktop:
|
|
19
|
-
return /* @__PURE__ */
|
|
20
|
-
/* @__PURE__ */
|
|
21
|
-
|
|
19
|
+
const { isDesktop: e } = h();
|
|
20
|
+
return /* @__PURE__ */ p("div", { className: g, children: [
|
|
21
|
+
/* @__PURE__ */ s(
|
|
22
|
+
t,
|
|
22
23
|
{
|
|
23
|
-
size:
|
|
24
|
+
size: e ? "large" : "medium",
|
|
24
25
|
iconName: "directionDown",
|
|
25
26
|
deg: "90",
|
|
26
|
-
disabled: i === 0,
|
|
27
|
-
additionalClass:
|
|
28
|
-
onClick:
|
|
27
|
+
disabled: o ? !1 : i === 0,
|
|
28
|
+
additionalClass: r,
|
|
29
|
+
onClick: n
|
|
29
30
|
}
|
|
30
31
|
),
|
|
31
|
-
|
|
32
|
-
|
|
32
|
+
m && /* @__PURE__ */ s(
|
|
33
|
+
u,
|
|
33
34
|
{
|
|
34
|
-
additionalClass:
|
|
35
|
+
additionalClass: T(l.sliderTag, c),
|
|
35
36
|
variant: "shade",
|
|
36
|
-
size:
|
|
37
|
-
children: `${i + 1} из ${
|
|
37
|
+
size: e ? "large" : "medium",
|
|
38
|
+
children: `${i + 1} из ${a.length}`
|
|
38
39
|
}
|
|
39
40
|
),
|
|
40
|
-
/* @__PURE__ */
|
|
41
|
-
|
|
41
|
+
/* @__PURE__ */ s(
|
|
42
|
+
t,
|
|
42
43
|
{
|
|
43
|
-
disabled: i ===
|
|
44
|
-
size:
|
|
44
|
+
disabled: o ? !1 : i === a.length - 1,
|
|
45
|
+
size: e ? "large" : "medium",
|
|
45
46
|
iconName: "directionDown",
|
|
46
47
|
deg: "-90",
|
|
47
|
-
additionalClass:
|
|
48
|
-
onClick:
|
|
48
|
+
additionalClass: r,
|
|
49
|
+
onClick: d
|
|
49
50
|
}
|
|
50
51
|
)
|
|
51
52
|
] });
|
|
52
53
|
};
|
|
53
54
|
export {
|
|
54
|
-
|
|
55
|
+
b as SliderNavigation
|
|
55
56
|
};
|