@okam/stack-ui 1.24.0 → 1.24.2

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.
@@ -0,0 +1,3 @@
1
+ import type { TAlertsPaginationProps } from '../../interface';
2
+ declare const AlertsPagination: (props: TAlertsPaginationProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default AlertsPagination;
@@ -0,0 +1,3 @@
1
+ import type { TAlertsPaginationBulletProps } from '../../interface';
2
+ declare const AlertsPaginationBullet: (props: TAlertsPaginationBulletProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default AlertsPaginationBullet;
@@ -1,6 +1,7 @@
1
1
  import type React from 'react';
2
2
  import type * as SwiperModules from 'swiper/modules';
3
- import type { SwiperProps } from 'swiper/react';
3
+ import type { SwiperClass, SwiperProps } from 'swiper/react';
4
+ import type { A11yOptions } from 'swiper/types';
4
5
  import type { TDefaultComponent } from '../../types/components';
5
6
  import type { TButtonProps } from '../Button/interface';
6
7
  import type { LightboxProps } from '../Lightbox/interface';
@@ -13,7 +14,23 @@ export interface TAlertsItem {
13
14
  content?: React.ReactNode;
14
15
  button?: TButtonProps;
15
16
  }
16
- export interface TAlertsComponentProps extends Omit<TDefaultComponent, 'children'>, Omit<SwiperProps, 'children' | 'modules'> {
17
+ export interface TAlertsPaginationProps extends TDefaultComponent {
18
+ activeIndex: number;
19
+ alerts: TAlertsItem[];
20
+ controller?: SwiperClass;
21
+ paginationGroupLabel?: string;
22
+ }
23
+ export interface TAlertsPaginationBulletProps extends TDefaultComponent {
24
+ activeIndex: number;
25
+ alerts: TAlertsItem[];
26
+ controller?: SwiperClass;
27
+ index: number;
28
+ }
29
+ interface TCustomA11yOptions extends A11yOptions {
30
+ paginationGroupLabel?: string;
31
+ }
32
+ export interface TAlertsComponentProps extends Omit<TDefaultComponent, 'children'>, Omit<SwiperProps, 'children' | 'modules' | 'a11y'> {
33
+ a11y?: TCustomA11yOptions;
17
34
  alerts: TAlertsItem[];
18
35
  children?: (props: TAlertsItemProps) => React.ReactNode;
19
36
  modules?: (keyof typeof SwiperModules)[];