mimir-ui-kit 1.42.2 → 1.43.1
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/ProgressBar-COdzy3fY.js +67 -0
- package/dist/assets/MultiSelectSearch.css +1 -1
- package/dist/assets/Pagination.css +1 -1
- package/dist/assets/SelectSearch.css +1 -1
- package/dist/assets/Switcher.css +1 -1
- package/dist/assets/TabTrail.css +1 -1
- package/dist/assets/hooks.css +1 -0
- package/dist/{combobox-Dv6-ANkb.js → combobox-fIVOzEhl.js} +6 -6
- package/dist/components/Accordion/Accordion.d.ts +6 -0
- package/dist/components/Accordion/Accordion.js +202 -182
- package/dist/components/AnchorLink/Link.d.ts +2 -0
- package/dist/components/AnchorLink/Link.js +54 -42
- package/dist/components/CheckboxMimir/CheckboxMimir.js +4 -4
- package/dist/components/DatePicker/DatePicker.d.ts +32 -0
- package/dist/components/DatePicker/DatePicker.js +125 -111
- package/dist/components/DatePicker/DatePickerModal.d.ts +5 -1
- package/dist/components/DatePicker/DatePickerModal.js +97 -75
- package/dist/components/DatePicker/MonthPickerModal.d.ts +5 -1
- package/dist/components/DatePicker/MonthPickerModal.js +96 -58
- package/dist/components/DatePicker/YearPickerModal.d.ts +5 -1
- package/dist/components/DatePicker/YearPickerModal.js +75 -57
- package/dist/components/Drawer/Drawer.d.ts +7 -1
- package/dist/components/Drawer/Drawer.js +122 -106
- package/dist/components/Drawer/hooks.d.ts +9 -0
- package/dist/components/Drawer/hooks.js +24 -0
- package/dist/components/Dropdown/Dropdown.d.ts +18 -1
- package/dist/components/Dropdown/Dropdown.js +361 -343
- package/dist/components/Dropdown/constants.d.ts +11 -0
- package/dist/components/Dropdown/constants.js +5 -0
- package/dist/components/Dropdown/hooks.d.ts +19 -0
- package/dist/components/Dropdown/hooks.js +11 -0
- package/dist/components/Dropdown/index.d.ts +1 -0
- package/dist/components/Dropdown/index.js +5 -2
- package/dist/components/MultiSelectSearch/MultiSelectSearch.d.ts +8 -1
- package/dist/components/MultiSelectSearch/MultiSelectSearch.js +461 -302
- package/dist/components/MultiSelectSearch/constants.d.ts +6 -0
- package/dist/components/MultiSelectSearch/constants.js +7 -5
- package/dist/components/MultiSelectSearch/index.d.ts +1 -1
- package/dist/components/MultiSelectSearch/index.js +5 -4
- package/dist/components/MultiSelectSearch/types.d.ts +33 -1
- package/dist/components/MultiSelectSearch/utils.d.ts +1 -0
- package/dist/components/MultiSelectSearch/utils.js +31 -17
- package/dist/components/Pagination/Pagination.d.ts +23 -0
- package/dist/components/Pagination/Pagination.js +137 -99
- package/dist/components/RadioGroup/RadioGroup.js +3 -3
- package/dist/components/SelectSearch/SelectSearch.d.ts +8 -1
- package/dist/components/SelectSearch/SelectSearch.js +381 -220
- package/dist/components/SelectSearch/constants.d.ts +6 -0
- package/dist/components/SelectSearch/constants.js +3 -2
- package/dist/components/SelectSearch/index.d.ts +1 -1
- package/dist/components/SelectSearch/index.js +5 -4
- package/dist/components/SelectSearch/types.d.ts +32 -1
- package/dist/components/SelectSearch/utils.d.ts +2 -0
- package/dist/components/SelectSearch/utils.js +28 -14
- package/dist/components/Slider/Slider.d.ts +6 -2
- package/dist/components/Slider/Slider.js +123 -109
- package/dist/components/Slider/utils.d.ts +1 -0
- package/dist/components/Slider/utils.js +4 -0
- package/dist/components/Switcher/Switcher.js +66 -59
- package/dist/components/Switcher/types.d.ts +1 -0
- package/dist/components/TabTrail/TabTrail.d.ts +9 -0
- package/dist/components/TabTrail/TabTrail.js +198 -190
- package/dist/components/Toasts/ProgressBar.d.ts +4 -2
- package/dist/components/Toasts/ProgressBar.js +1 -1
- package/dist/components/Toasts/Toast.d.ts +5 -1
- package/dist/components/Toasts/Toast.js +59 -44
- package/dist/components/Toasts/ToastList.js +1 -1
- package/dist/components/Toasts/ToastsProvider.js +1 -1
- package/dist/components/index.d.ts +3 -2
- package/dist/components/index.js +154 -149
- package/dist/{field-BP5-U1Nr.js → field-BLi5834s.js} +2 -2
- package/dist/{focus-management-Dp2_vbQ3.js → focus-management-BAl0GmRk.js} +1 -1
- package/dist/{hidden-Dn4lM6EL.js → hidden-CkTYbiNM.js} +1 -1
- package/dist/hooks/useTimer/index.d.ts +2 -1
- package/dist/hooks/useTimer/index.js +55 -41
- package/dist/hooks-HgN6Yauq.js +117 -0
- package/dist/index.js +182 -177
- package/dist/{keyboard-CUMsrFX1.js → keyboard-wis2TUql.js} +2 -2
- package/dist/{label-DOlEWXBl.js → label-BmphTIGY.js} +2 -2
- package/dist/{open-closed-CkTbpRyi.js → open-closed-CJijMeI2.js} +1 -1
- package/dist/{portal-C_u5auU1.js → portal-BnEqSZwo.js} +2 -2
- package/dist/{use-active-press-BVQqDQ3V.js → use-active-press-CnDeVvQq.js} +1 -1
- package/dist/{use-is-mounted-D7cq4xsa.js → use-is-mounted-MBU4fiLr.js} +1 -1
- package/package.json +3 -1
- package/dist/ProgressBar-DEFs1tWq.js +0 -55
- package/dist/assets/Dropdown.css +0 -1
- package/dist/components/Pagination/types.d.ts +0 -0
@@ -1,6 +1,7 @@
|
|
1
|
-
import { SelectSearch as
|
2
|
-
import { ESelectSearchSize as
|
1
|
+
import { SelectSearch as c } from "./SelectSearch.js";
|
2
|
+
import { ELoadingIndicatorPlacement as r, ESelectSearchSize as t } from "./constants.js";
|
3
3
|
export {
|
4
|
-
|
5
|
-
|
4
|
+
r as ESSLoadingPlacement,
|
5
|
+
t as ESelectSearchSize,
|
6
|
+
c as SelectSearch
|
6
7
|
};
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ReactNode } from 'react';
|
2
|
-
import { ESelectSearchSize } from './constants';
|
2
|
+
import { ELoadingIndicatorPlacement, ESelectSearchSize } from './constants';
|
3
3
|
import { TInputProps } from '../Input';
|
4
4
|
|
5
5
|
export type TSelectOption = {
|
@@ -56,4 +56,35 @@ export type TSelectSearchProps = Pick<TInputProps, 'withClearButton' | 'variant'
|
|
56
56
|
autocomplete?: 'on' | 'off';
|
57
57
|
/** Показывать список при фокусе или нет */
|
58
58
|
immediate?: boolean;
|
59
|
+
/**
|
60
|
+
* Текст, отображаемый при отсутствии опций для выбора
|
61
|
+
*/
|
62
|
+
noOptionsText?: string | ReactNode;
|
63
|
+
/**
|
64
|
+
* Текст, отображаемый при отсутствии результатов поиска
|
65
|
+
*/
|
66
|
+
noMatchText?: string | ReactNode;
|
67
|
+
/**
|
68
|
+
* Функция обратного вызова, вызываемая при открытии выпадающего списка
|
69
|
+
* Можно использовать для загрузки данных
|
70
|
+
*/
|
71
|
+
loadOnOpen?: () => void;
|
72
|
+
/**
|
73
|
+
* Флаг состояния загрузки
|
74
|
+
*/
|
75
|
+
loading?: boolean;
|
76
|
+
/**
|
77
|
+
* Положение индикатора загрузки
|
78
|
+
*/
|
79
|
+
loadingIndicatorPlacement?: ELoadingIndicatorPlacement | `${ELoadingIndicatorPlacement}`;
|
80
|
+
/**
|
81
|
+
* Ключ объекта TSelectOption, по которому нужно группировать элементы
|
82
|
+
*/
|
83
|
+
groupBy?: string;
|
84
|
+
/**
|
85
|
+
* Функция для получения заголовка группы из значения группировки
|
86
|
+
* @param groupValue Значение поля группировки
|
87
|
+
* @returns Строка для отображения в заголовке группы
|
88
|
+
*/
|
89
|
+
getGroupTitle?: (groupValue: string) => string;
|
59
90
|
};
|
@@ -1,5 +1,7 @@
|
|
1
1
|
import { ESelectSearchSize } from './constants';
|
2
|
+
import { TSelectOption } from './types';
|
2
3
|
import { EInputSize } from '../Input';
|
3
4
|
|
4
5
|
export declare const mapSizeToInputSize: (size: ESelectSearchSize) => EInputSize;
|
5
6
|
export declare const getDropdownArrowIcon: (isOpen: boolean, size: ESelectSearchSize) => "DropdownArrowBottom16px" | "DropdownArrowUp16px" | "DropdownArrowUp24px" | "DropdownArrowDown24px";
|
7
|
+
export declare const prepareGroupedItems: (items: TSelectOption[], groupBy: string, getGroupTitle: (value: string) => string) => TSelectOption[];
|
@@ -1,19 +1,33 @@
|
|
1
|
-
import { ESelectSearchSize as
|
1
|
+
import { ESelectSearchSize as t } from "./constants.js";
|
2
2
|
import "../../Input-BU_6U1CW.js";
|
3
|
-
import { EInputSize as
|
4
|
-
const
|
5
|
-
switch (
|
6
|
-
case
|
7
|
-
return
|
8
|
-
case
|
9
|
-
return
|
10
|
-
case
|
11
|
-
return
|
3
|
+
import { EInputSize as n } from "../Input/constants.js";
|
4
|
+
const w = (r) => {
|
5
|
+
switch (r) {
|
6
|
+
case t.S:
|
7
|
+
return n.S;
|
8
|
+
case t.M:
|
9
|
+
return n.M;
|
10
|
+
case t.L:
|
11
|
+
return n.L;
|
12
12
|
default:
|
13
|
-
return
|
13
|
+
return n.M;
|
14
14
|
}
|
15
|
-
},
|
15
|
+
}, S = (r, o) => r ? o === t.L ? "DropdownArrowUp24px" : "DropdownArrowUp16px" : o === t.L ? "DropdownArrowDown24px" : "DropdownArrowBottom16px", f = (r, o, a) => {
|
16
|
+
if (!r.length || !o) return r;
|
17
|
+
const p = [], u = /* @__PURE__ */ new Set();
|
18
|
+
for (const s of r) {
|
19
|
+
const e = String(s[o] || "Без группы");
|
20
|
+
u.has(e) || (u.add(e), p.push({
|
21
|
+
id: `group-header-${e}`,
|
22
|
+
name: a(e),
|
23
|
+
isGroupHeader: !0,
|
24
|
+
originalValue: e
|
25
|
+
})), p.push(s);
|
26
|
+
}
|
27
|
+
return p;
|
28
|
+
};
|
16
29
|
export {
|
17
|
-
|
18
|
-
|
30
|
+
S as getDropdownArrowIcon,
|
31
|
+
w as mapSizeToInputSize,
|
32
|
+
f as prepareGroupedItems
|
19
33
|
};
|
@@ -2,7 +2,7 @@ import { ReactNode } from 'react';
|
|
2
2
|
import { SwiperProps } from 'swiper/react';
|
3
3
|
import { EProgressBarPosition } from './constants';
|
4
4
|
|
5
|
-
type TSlideImage = {
|
5
|
+
export type TSlideImage = {
|
6
6
|
image?: string;
|
7
7
|
imageDesktop?: string;
|
8
8
|
imageMobile?: string;
|
@@ -14,6 +14,10 @@ type TProps = SwiperProps & {
|
|
14
14
|
* Задержка перехода между слайдами
|
15
15
|
*/
|
16
16
|
delay?: number;
|
17
|
+
/**
|
18
|
+
* Расстояние между слайдами
|
19
|
+
*/
|
20
|
+
gap?: number;
|
17
21
|
/**
|
18
22
|
* Ширина пагинации слайдера на весь размер родительского контейнера
|
19
23
|
*/
|
@@ -71,5 +75,5 @@ type TProps = SwiperProps & {
|
|
71
75
|
*/
|
72
76
|
images?: TSlideImage[];
|
73
77
|
};
|
74
|
-
export default function Slider({ images, children, onSlideClick, swiperClassName, slideClassName, imageClassName, navigationClassName, sliderBottomPanelClassName, descriptionsClassName, progressBarPosition, isFullPaginationWidth, needNavigation, leftDescription, rightDescription, delay, ...props }: TProps): import("react/jsx-runtime").JSX.Element;
|
78
|
+
export default function Slider({ images, children, gap, onSlideClick, swiperClassName, slideClassName, imageClassName, navigationClassName, sliderBottomPanelClassName, descriptionsClassName, progressBarPosition, isFullPaginationWidth, needNavigation, leftDescription, rightDescription, delay, ...props }: TProps): import("react/jsx-runtime").JSX.Element;
|
75
79
|
export {};
|
@@ -1,189 +1,203 @@
|
|
1
|
-
import { jsx as
|
2
|
-
import { c as
|
3
|
-
import { memo as
|
4
|
-
import { u as
|
5
|
-
import { EProgressBarPosition as
|
6
|
-
import {
|
7
|
-
import {
|
8
|
-
import
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
1
|
+
import { jsx as t, jsxs as i, Fragment as G } from "react/jsx-runtime";
|
2
|
+
import { c as n } from "../../index-DIxK0V-G.js";
|
3
|
+
import { memo as x, useCallback as u, useMemo as H, forwardRef as J, useRef as q, useState as K, Children as v } from "react";
|
4
|
+
import { u as Q, S as V, A as W, a as k } from "../../swiper-react-BvAw14a4.js";
|
5
|
+
import { EProgressBarPosition as C } from "./constants.js";
|
6
|
+
import { formatSlideNumber as y } from "./utils.js";
|
7
|
+
import { AppImage as A } from "../Image/Image.js";
|
8
|
+
import { MergedButton as X } from "../MergedButton/MergedButton.js";
|
9
|
+
import '../../assets/Slider.css';const Z = "_swiper_qafre_2", ee = "_slide_qafre_8", re = "_link_qafre_15", se = "_image_qafre_21", te = "_navigation_qafre_28", ae = "_pagination_qafre_38", ne = "_slides_qafre_57", oe = "_separator_qafre_63", ie = "_progress_qafre_70", le = "_descriptions_qafre_87", s = {
|
10
|
+
swiper: Z,
|
11
|
+
slide: ee,
|
12
|
+
link: re,
|
13
|
+
image: se,
|
14
|
+
navigation: te,
|
15
|
+
pagination: ae,
|
15
16
|
"is-full": "_is-full_qafre_52",
|
16
|
-
slides:
|
17
|
-
separator:
|
18
|
-
progress:
|
17
|
+
slides: ne,
|
18
|
+
separator: oe,
|
19
|
+
progress: ie,
|
19
20
|
"progress-bar-bottom": "_progress-bar-bottom_qafre_77",
|
20
21
|
"progress-bar": "_progress-bar_qafre_77",
|
21
|
-
descriptions:
|
22
|
-
},
|
23
|
-
const e =
|
22
|
+
descriptions: le
|
23
|
+
}, ce = 15e3, de = x(() => {
|
24
|
+
const e = Q(), a = u(() => {
|
24
25
|
e.slideNext();
|
25
|
-
}, [e]),
|
26
|
+
}, [e]), c = u(() => {
|
26
27
|
e.slidePrev();
|
27
|
-
}, [e]),
|
28
|
+
}, [e]), d = H(
|
28
29
|
() => [
|
29
30
|
{
|
30
31
|
isIconButton: !0,
|
31
32
|
iconName: "ArrowLeft16px",
|
32
33
|
variant: "white",
|
33
|
-
onClick:
|
34
|
+
onClick: c
|
34
35
|
},
|
35
36
|
{
|
36
37
|
isIconButton: !0,
|
37
38
|
iconName: "ArrowRight16px",
|
38
39
|
variant: "white",
|
39
|
-
onClick:
|
40
|
+
onClick: a
|
40
41
|
}
|
41
42
|
],
|
42
|
-
[
|
43
|
+
[c, a]
|
43
44
|
);
|
44
|
-
return /* @__PURE__ */
|
45
|
-
}),
|
46
|
-
|
45
|
+
return /* @__PURE__ */ t(X, { buttons: d });
|
46
|
+
}), B = x(
|
47
|
+
J((e, a) => /* @__PURE__ */ t(
|
47
48
|
"div",
|
48
49
|
{
|
49
50
|
"data-testid": "progress-bar-wrapper",
|
50
|
-
className:
|
51
|
-
children: /* @__PURE__ */
|
51
|
+
className: n(s.progress, e == null ? void 0 : e.className),
|
52
|
+
children: /* @__PURE__ */ t(
|
52
53
|
"div",
|
53
54
|
{
|
54
|
-
ref:
|
55
|
-
className:
|
55
|
+
ref: a,
|
56
|
+
className: s["progress-bar"],
|
56
57
|
"data-testid": "progress-bar"
|
57
58
|
}
|
58
59
|
)
|
59
60
|
}
|
60
61
|
))
|
61
62
|
);
|
62
|
-
function
|
63
|
+
function Se({
|
63
64
|
images: e,
|
64
|
-
children:
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
65
|
+
children: a,
|
66
|
+
gap: c,
|
67
|
+
onSlideClick: d,
|
68
|
+
swiperClassName: I,
|
69
|
+
slideClassName: g,
|
70
|
+
imageClassName: w,
|
71
|
+
navigationClassName: P,
|
72
|
+
sliderBottomPanelClassName: T,
|
73
|
+
descriptionsClassName: F,
|
74
|
+
progressBarPosition: b = "top",
|
75
|
+
isFullPaginationWidth: E = !1,
|
76
|
+
needNavigation: l = !0,
|
77
|
+
leftDescription: S,
|
78
|
+
rightDescription: N,
|
79
|
+
delay: L = ce,
|
80
|
+
...M
|
79
81
|
}) {
|
80
|
-
const
|
81
|
-
|
82
|
-
|
83
|
-
|
82
|
+
const p = q(null), f = q(null), [O, R] = K(1), m = !(typeof a == "function") && !!a, $ = m ? v.count(a) : 0, j = (e == null ? void 0 : e.length) ?? 0, D = y(O), U = y(
|
83
|
+
m ? $ : j
|
84
|
+
), Y = u(() => {
|
85
|
+
if (f.current && l) {
|
86
|
+
const r = f.current.swiper;
|
87
|
+
R(r.realIndex + 1);
|
84
88
|
}
|
85
|
-
}, [
|
86
|
-
(
|
87
|
-
if (
|
88
|
-
const _ =
|
89
|
-
|
89
|
+
}, [l]), z = u(
|
90
|
+
(r, o) => {
|
91
|
+
if (p.current && l) {
|
92
|
+
const _ = r.params.autoplay.delay, h = o / _ * 100;
|
93
|
+
p.current.style.width = `${100 - h}%`;
|
90
94
|
}
|
91
95
|
},
|
92
|
-
[
|
96
|
+
[l]
|
93
97
|
);
|
94
|
-
return /* @__PURE__ */
|
95
|
-
|
98
|
+
return /* @__PURE__ */ i(
|
99
|
+
V,
|
96
100
|
{
|
97
|
-
...
|
101
|
+
...M,
|
98
102
|
ref: f,
|
99
|
-
className:
|
103
|
+
className: n(s.swiper, I),
|
100
104
|
loop: !0,
|
105
|
+
spaceBetween: c,
|
101
106
|
autoplay: {
|
102
|
-
delay:
|
107
|
+
delay: L,
|
103
108
|
disableOnInteraction: !1
|
104
109
|
},
|
105
110
|
fadeEffect: {
|
106
111
|
crossFade: !0
|
107
112
|
},
|
108
|
-
modules: [
|
109
|
-
onAutoplayTimeLeft:
|
110
|
-
onSlideChange:
|
113
|
+
modules: [W],
|
114
|
+
onAutoplayTimeLeft: z,
|
115
|
+
onSlideChange: Y,
|
111
116
|
children: [
|
112
|
-
/* @__PURE__ */
|
117
|
+
/* @__PURE__ */ t(
|
113
118
|
"div",
|
114
119
|
{
|
115
|
-
className:
|
120
|
+
className: n(s.navigation, P),
|
116
121
|
slot: "container-start",
|
117
|
-
children:
|
118
|
-
/* @__PURE__ */
|
122
|
+
children: l && /* @__PURE__ */ i(G, { children: [
|
123
|
+
/* @__PURE__ */ i(
|
119
124
|
"div",
|
120
125
|
{
|
121
126
|
"data-testid": "pagination",
|
122
|
-
className:
|
123
|
-
[
|
127
|
+
className: n(s.pagination, {
|
128
|
+
[s["is-full"]]: E
|
124
129
|
}),
|
125
130
|
children: [
|
126
|
-
/* @__PURE__ */
|
127
|
-
|
128
|
-
/* @__PURE__ */
|
129
|
-
|
131
|
+
/* @__PURE__ */ i("h2", { className: s.slides, children: [
|
132
|
+
D,
|
133
|
+
/* @__PURE__ */ t("span", { className: s.separator }),
|
134
|
+
U
|
130
135
|
] }),
|
131
|
-
/* @__PURE__ */
|
136
|
+
/* @__PURE__ */ t(de, {})
|
132
137
|
]
|
133
138
|
}
|
134
139
|
),
|
135
|
-
|
140
|
+
b === C.TOP && /* @__PURE__ */ t(B, { ref: p })
|
136
141
|
] })
|
137
142
|
}
|
138
143
|
),
|
139
|
-
|
140
|
-
|
141
|
-
|
144
|
+
m ? v.map(a, (r, o) => /* @__PURE__ */ t(
|
145
|
+
k,
|
146
|
+
{
|
147
|
+
onClick: d,
|
148
|
+
"data-testid": `slide-${o}`,
|
149
|
+
className: n(s.slide, g),
|
150
|
+
children: r
|
151
|
+
},
|
152
|
+
o
|
153
|
+
)) : e == null ? void 0 : e.map((r, o) => {
|
154
|
+
if (!r) return null;
|
155
|
+
const _ = /* @__PURE__ */ t(
|
142
156
|
"a",
|
143
157
|
{
|
144
|
-
className:
|
145
|
-
href:
|
158
|
+
className: s.link,
|
159
|
+
href: r.url,
|
146
160
|
rel: "noopener noreferrer",
|
147
161
|
target: "_blank",
|
148
|
-
children: /* @__PURE__ */
|
149
|
-
|
162
|
+
children: /* @__PURE__ */ t(
|
163
|
+
A,
|
150
164
|
{
|
151
|
-
className:
|
152
|
-
src:
|
165
|
+
className: n(s.image, w),
|
166
|
+
src: r.image
|
153
167
|
}
|
154
168
|
)
|
155
169
|
}
|
156
|
-
),
|
157
|
-
|
170
|
+
), h = () => typeof a == "function" ? a(r) : r.url ? _ : /* @__PURE__ */ t(
|
171
|
+
A,
|
158
172
|
{
|
159
|
-
className:
|
160
|
-
src:
|
161
|
-
desktopImage:
|
162
|
-
mobileImage:
|
173
|
+
className: n(s.image, w),
|
174
|
+
src: r.image,
|
175
|
+
desktopImage: r.imageDesktop,
|
176
|
+
mobileImage: r.imageMobile
|
163
177
|
}
|
164
178
|
);
|
165
|
-
return /* @__PURE__ */
|
166
|
-
|
179
|
+
return /* @__PURE__ */ t(
|
180
|
+
k,
|
167
181
|
{
|
168
|
-
"data-testid": `slide-${
|
169
|
-
onClick:
|
170
|
-
className:
|
171
|
-
children:
|
182
|
+
"data-testid": `slide-${o}`,
|
183
|
+
onClick: d,
|
184
|
+
className: n(s.slide, g),
|
185
|
+
children: h()
|
172
186
|
},
|
173
|
-
|
187
|
+
r.id
|
174
188
|
);
|
175
189
|
}),
|
176
|
-
|
177
|
-
/* @__PURE__ */
|
178
|
-
|
190
|
+
b === C.BOTTOM && /* @__PURE__ */ i("div", { className: T, children: [
|
191
|
+
/* @__PURE__ */ t(
|
192
|
+
B,
|
179
193
|
{
|
180
|
-
ref:
|
181
|
-
className:
|
194
|
+
ref: p,
|
195
|
+
className: s["progress-bar-bottom"]
|
182
196
|
}
|
183
197
|
),
|
184
|
-
/* @__PURE__ */
|
185
|
-
|
186
|
-
|
198
|
+
/* @__PURE__ */ i("div", { className: n(s.descriptions, F), children: [
|
199
|
+
S && /* @__PURE__ */ t("div", { "data-testid": "slider-left-description", children: S }),
|
200
|
+
N && /* @__PURE__ */ t("div", { "data-testid": "slider-right-description", children: N })
|
187
201
|
] })
|
188
202
|
] })
|
189
203
|
]
|
@@ -191,5 +205,5 @@ function fe({
|
|
191
205
|
);
|
192
206
|
}
|
193
207
|
export {
|
194
|
-
|
208
|
+
Se as default
|
195
209
|
};
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const formatSlideNumber: (num: number) => string;
|