mimir-ui-kit 1.38.5 → 1.38.7
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/{combobox-DgSZTriw.js → combobox-CVtJDVoZ.js} +251 -254
- package/dist/components/Accordion/Accordion.js +3 -3
- package/dist/components/CheckboxMimir/CheckboxMimir.js +4 -4
- package/dist/components/Dropdown/Dropdown.js +32 -32
- package/dist/components/MultiSelectSearch/MultiSelectSearch.js +18 -18
- package/dist/components/RadioGroup/RadioGroup.js +3 -3
- package/dist/components/SelectSearch/SelectSearch.js +60 -58
- package/dist/components/Slider/Slider.d.ts +21 -8
- package/dist/components/Slider/Slider.js +388 -383
- package/dist/components/Switcher/Switcher.js +4 -4
- package/dist/components/TabTrail/TabTrail.js +4 -4
- package/dist/{field-C1kt7aNM.js → field-FJ34aSs4.js} +2 -2
- package/dist/{focus-management-BtPpk3D1.js → focus-management-DE4t_lW3.js} +1 -1
- package/dist/{hidden-PvGXrYUY.js → hidden-DbgtYPOH.js} +1 -1
- package/dist/{keyboard-mgWkd2Vh.js → keyboard-B0lm_zyn.js} +111 -114
- package/dist/{label-D4GFpe5F.js → label-y3ANLTNC.js} +2 -2
- package/dist/open-closed-CdldUPoq.js +86 -0
- package/dist/portal-WDFNoIMz.js +1908 -0
- package/dist/{use-active-press-CqLGIFz7.js → use-active-press-86hajhdd.js} +1 -1
- package/package.json +1 -1
- package/dist/open-closed-D2VjDhAN.js +0 -86
- package/dist/portal-DPqg52FR.js +0 -1946
|
@@ -2,6 +2,13 @@ import { ReactNode } from 'react';
|
|
|
2
2
|
import { SwiperProps } from 'swiper/react';
|
|
3
3
|
import { EProgressBarPosition } from './constants';
|
|
4
4
|
|
|
5
|
+
type TSlideImage = {
|
|
6
|
+
image?: string;
|
|
7
|
+
imageDesktop?: string;
|
|
8
|
+
imageMobile?: string;
|
|
9
|
+
url?: string;
|
|
10
|
+
id?: number;
|
|
11
|
+
};
|
|
5
12
|
type TProps = SwiperProps & {
|
|
6
13
|
/**
|
|
7
14
|
* Задержка перехода между слайдами
|
|
@@ -11,6 +18,14 @@ type TProps = SwiperProps & {
|
|
|
11
18
|
* Ширина пагинации слайдера на весь размер родительского контейнера
|
|
12
19
|
*/
|
|
13
20
|
isFullPaginationWidth?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Показывать стрелки навигации и количество слайдов.
|
|
23
|
+
*/
|
|
24
|
+
needNavigation?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Функция, которая будет вызвана при клике на слайд.
|
|
27
|
+
*/
|
|
28
|
+
onSlideClick?: VoidFunction;
|
|
14
29
|
/**
|
|
15
30
|
* Положение прогресс бара.
|
|
16
31
|
*/
|
|
@@ -35,16 +50,14 @@ type TProps = SwiperProps & {
|
|
|
35
50
|
* Дополнительные классы для картинок
|
|
36
51
|
*/
|
|
37
52
|
imageClassName?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Контент для слайдера.
|
|
55
|
+
*/
|
|
56
|
+
children?: ReactNode | ((props: TSlideImage) => ReactNode);
|
|
38
57
|
/**
|
|
39
58
|
* Массив данных для отрисовки слайдов.
|
|
40
59
|
*/
|
|
41
|
-
images?:
|
|
42
|
-
image?: string;
|
|
43
|
-
imageDesktop?: string;
|
|
44
|
-
imageMobile?: string;
|
|
45
|
-
url?: string;
|
|
46
|
-
id?: number;
|
|
47
|
-
}[];
|
|
60
|
+
images?: TSlideImage[];
|
|
48
61
|
};
|
|
49
|
-
export default function Slider({ images, swiperClassName, slideClassName, imageClassName, progressBarPosition, isFullPaginationWidth, leftDescription, rightDescription, delay, ...props }: TProps): import("react/jsx-runtime").JSX.Element;
|
|
62
|
+
export default function Slider({ images, children, onSlideClick, swiperClassName, slideClassName, imageClassName, progressBarPosition, isFullPaginationWidth, needNavigation, leftDescription, rightDescription, delay, ...props }: TProps): import("react/jsx-runtime").JSX.Element;
|
|
50
63
|
export {};
|