@okam/stack-ui 1.24.2 → 1.25.0
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/components/Carousel/index.d.ts +3 -0
- package/components/Carousel/interface.d.ts +24 -0
- package/index.d.ts +1 -0
- package/index.js +13 -13
- package/index.mjs +9939 -9879
- package/package.json +1 -1
- package/style.css +1 -1
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type Swiper from 'swiper';
|
|
3
|
+
import type { SwiperOptions } from 'swiper/types/swiper-options';
|
|
4
|
+
import type { TDefaultComponent } from '../../types/components';
|
|
5
|
+
export type TSlide = {
|
|
6
|
+
id?: string;
|
|
7
|
+
child?: React.ReactNode;
|
|
8
|
+
};
|
|
9
|
+
export interface TCarouselProps extends TDefaultComponent, SwiperOptions {
|
|
10
|
+
id?: React.Key;
|
|
11
|
+
children?: React.ReactNode;
|
|
12
|
+
slides?: TSlide[];
|
|
13
|
+
navigationButtons?: {
|
|
14
|
+
leftButton: React.ReactElement;
|
|
15
|
+
rightButton: React.ReactElement;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export interface TCarouselButtonProps extends TDefaultComponent {
|
|
19
|
+
navigationButton?: React.ReactElement;
|
|
20
|
+
icon: string;
|
|
21
|
+
id: string;
|
|
22
|
+
swiperFn: () => void;
|
|
23
|
+
swiper: Swiper | undefined;
|
|
24
|
+
}
|
package/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export { default as ShareButton } from './components/ShareButton';
|
|
|
7
7
|
export { default as SidePanel } from './components/SidePanel';
|
|
8
8
|
export { default as Lightbox } from './components/Lightbox';
|
|
9
9
|
export { default as Popover } from './components/Popover';
|
|
10
|
+
export { default as Carousel } from './components/Carousel';
|
|
10
11
|
export { default as WysiwygBlock } from './components/WysiwygBlock';
|
|
11
12
|
export { default as Icon } from './components/Icon';
|
|
12
13
|
export { default as Date } from './components/Date';
|