@okam/stack-ui 1.24.1 → 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.
- package/components/Alerts/components/pagination/AlertsPagination.d.ts +3 -0
- package/components/Alerts/components/pagination/AlertsPaginationBullet.d.ts +3 -0
- package/components/Alerts/interface.d.ts +19 -2
- package/index.js +14 -14
- package/index.mjs +2334 -2266
- package/package.json +1 -1
- package/theme/Alerts/index.d.ts +2 -2
|
@@ -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
|
|
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)[];
|