@okam/stack-ui 1.24.3 → 1.25.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.
@@ -1,6 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  import type { TButtonProps } from '../../Button/interface';
3
- declare const AlertsNavigationButton: import("react").ForwardRefExoticComponent<TButtonProps & import("react").RefAttributes<HTMLButtonElement & HTMLAnchorElement>>;
3
+ declare const AlertsNavigationButton: import("react").ForwardRefExoticComponent<TButtonProps & {
4
+ onSubmit?: (() => void) | undefined;
5
+ } & import("react").RefAttributes<HTMLButtonElement & HTMLAnchorElement>>;
4
6
  export declare const AlertsNextNavigationButton: import("react").ForwardRefExoticComponent<TButtonProps & import("react").RefAttributes<HTMLButtonElement & HTMLAnchorElement>>;
5
7
  export declare const AlertsPrevNavigationButton: import("react").ForwardRefExoticComponent<TButtonProps & import("react").RefAttributes<HTMLButtonElement & HTMLAnchorElement>>;
6
8
  export default AlertsNavigationButton;
@@ -1,6 +1,6 @@
1
1
  import type React from 'react';
2
2
  import type * as SwiperModules from 'swiper/modules';
3
- import type { SwiperClass, SwiperProps } from 'swiper/react';
3
+ import type { SwiperProps } from 'swiper/react';
4
4
  import type { A11yOptions } from 'swiper/types';
5
5
  import type { TDefaultComponent } from '../../types/components';
6
6
  import type { TButtonProps } from '../Button/interface';
@@ -17,13 +17,11 @@ export interface TAlertsItem {
17
17
  export interface TAlertsPaginationProps extends TDefaultComponent {
18
18
  activeIndex: number;
19
19
  alerts: TAlertsItem[];
20
- controller?: SwiperClass;
21
20
  paginationGroupLabel?: string;
22
21
  }
23
22
  export interface TAlertsPaginationBulletProps extends TDefaultComponent {
24
23
  activeIndex: number;
25
24
  alerts: TAlertsItem[];
26
- controller?: SwiperClass;
27
25
  index: number;
28
26
  }
29
27
  interface TCustomA11yOptions extends A11yOptions {
@@ -0,0 +1,3 @@
1
+ import type { TCarouselProps } from './interface';
2
+ declare const Carousel: (props: TCarouselProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default Carousel;
@@ -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';