@xsolla/xui-pagination-web 0.64.0-pr56.1768348754
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/index.d.mts +56 -0
- package/index.d.ts +56 -0
- package/index.js +675 -0
- package/index.js.map +1 -0
- package/index.mjs +638 -0
- package/index.mjs.map +1 -0
- package/package.json +23 -0
package/index.d.mts
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
type PaginationSize = "sm" | "md" | "lg";
|
|
4
|
+
interface PaginationProps {
|
|
5
|
+
/**
|
|
6
|
+
* Property to specify the size of the pagination.
|
|
7
|
+
* @default "md"
|
|
8
|
+
*/
|
|
9
|
+
size?: PaginationSize;
|
|
10
|
+
/**
|
|
11
|
+
* Current page number (1-indexed).
|
|
12
|
+
* @default 1
|
|
13
|
+
*/
|
|
14
|
+
currentPage?: number;
|
|
15
|
+
/**
|
|
16
|
+
* Total number of pages.
|
|
17
|
+
* @default 1
|
|
18
|
+
*/
|
|
19
|
+
totalPages?: number;
|
|
20
|
+
/**
|
|
21
|
+
* Number of page buttons to show on each side of the current page.
|
|
22
|
+
* @default 1
|
|
23
|
+
*/
|
|
24
|
+
siblingCount?: number;
|
|
25
|
+
/**
|
|
26
|
+
* Callback fired when a page is clicked.
|
|
27
|
+
*/
|
|
28
|
+
onPageChange?: (page: number) => void;
|
|
29
|
+
/**
|
|
30
|
+
* Whether the pagination is disabled.
|
|
31
|
+
* @default false
|
|
32
|
+
*/
|
|
33
|
+
disabled?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Property for specifying the stretch of the pagination to fit the parent element.
|
|
36
|
+
* @default false
|
|
37
|
+
*/
|
|
38
|
+
stretched?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Whether to show the previous/next buttons.
|
|
41
|
+
* @default true
|
|
42
|
+
*/
|
|
43
|
+
showNavigation?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Custom background color for the pagination container
|
|
46
|
+
*/
|
|
47
|
+
backgroundColor?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Test ID for testing frameworks
|
|
50
|
+
*/
|
|
51
|
+
testID?: string;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
declare const Pagination: React.FC<PaginationProps>;
|
|
55
|
+
|
|
56
|
+
export { Pagination, type PaginationProps, type PaginationSize };
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
type PaginationSize = "sm" | "md" | "lg";
|
|
4
|
+
interface PaginationProps {
|
|
5
|
+
/**
|
|
6
|
+
* Property to specify the size of the pagination.
|
|
7
|
+
* @default "md"
|
|
8
|
+
*/
|
|
9
|
+
size?: PaginationSize;
|
|
10
|
+
/**
|
|
11
|
+
* Current page number (1-indexed).
|
|
12
|
+
* @default 1
|
|
13
|
+
*/
|
|
14
|
+
currentPage?: number;
|
|
15
|
+
/**
|
|
16
|
+
* Total number of pages.
|
|
17
|
+
* @default 1
|
|
18
|
+
*/
|
|
19
|
+
totalPages?: number;
|
|
20
|
+
/**
|
|
21
|
+
* Number of page buttons to show on each side of the current page.
|
|
22
|
+
* @default 1
|
|
23
|
+
*/
|
|
24
|
+
siblingCount?: number;
|
|
25
|
+
/**
|
|
26
|
+
* Callback fired when a page is clicked.
|
|
27
|
+
*/
|
|
28
|
+
onPageChange?: (page: number) => void;
|
|
29
|
+
/**
|
|
30
|
+
* Whether the pagination is disabled.
|
|
31
|
+
* @default false
|
|
32
|
+
*/
|
|
33
|
+
disabled?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Property for specifying the stretch of the pagination to fit the parent element.
|
|
36
|
+
* @default false
|
|
37
|
+
*/
|
|
38
|
+
stretched?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Whether to show the previous/next buttons.
|
|
41
|
+
* @default true
|
|
42
|
+
*/
|
|
43
|
+
showNavigation?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Custom background color for the pagination container
|
|
46
|
+
*/
|
|
47
|
+
backgroundColor?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Test ID for testing frameworks
|
|
50
|
+
*/
|
|
51
|
+
testID?: string;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
declare const Pagination: React.FC<PaginationProps>;
|
|
55
|
+
|
|
56
|
+
export { Pagination, type PaginationProps, type PaginationSize };
|