@yamada-ui/pagination 0.4.16 → 0.4.17
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.
|
@@ -4,7 +4,7 @@ type PaginationItemOptions = {
|
|
|
4
4
|
/**
|
|
5
5
|
* The type of the page or item assigned to the pagination item.
|
|
6
6
|
*/
|
|
7
|
-
page: number |
|
|
7
|
+
page: number | "dots" | "prev" | "next" | "first" | "last";
|
|
8
8
|
/**
|
|
9
9
|
* If `true`, the pagination item will be actived.
|
|
10
10
|
*
|
|
@@ -18,7 +18,7 @@ type PaginationItemOptions = {
|
|
|
18
18
|
*/
|
|
19
19
|
isDisabled?: boolean;
|
|
20
20
|
};
|
|
21
|
-
type PaginationItemProps = ComponentPropsWithoutRef<
|
|
21
|
+
type PaginationItemProps = ComponentPropsWithoutRef<"button"> & PaginationItemOptions;
|
|
22
22
|
declare const PaginationItem: FC<PaginationItemProps>;
|
|
23
23
|
|
|
24
24
|
export { PaginationItem, PaginationItemProps };
|
|
@@ -4,7 +4,7 @@ type PaginationItemOptions = {
|
|
|
4
4
|
/**
|
|
5
5
|
* The type of the page or item assigned to the pagination item.
|
|
6
6
|
*/
|
|
7
|
-
page: number |
|
|
7
|
+
page: number | "dots" | "prev" | "next" | "first" | "last";
|
|
8
8
|
/**
|
|
9
9
|
* If `true`, the pagination item will be actived.
|
|
10
10
|
*
|
|
@@ -18,7 +18,7 @@ type PaginationItemOptions = {
|
|
|
18
18
|
*/
|
|
19
19
|
isDisabled?: boolean;
|
|
20
20
|
};
|
|
21
|
-
type PaginationItemProps = ComponentPropsWithoutRef<
|
|
21
|
+
type PaginationItemProps = ComponentPropsWithoutRef<"button"> & PaginationItemOptions;
|
|
22
22
|
declare const PaginationItem: FC<PaginationItemProps>;
|
|
23
23
|
|
|
24
24
|
export { PaginationItem, PaginationItemProps };
|
package/dist/pagination.d.mts
CHANGED
|
@@ -12,7 +12,7 @@ type PaginationOptions = {
|
|
|
12
12
|
/**
|
|
13
13
|
* Props for button element.
|
|
14
14
|
*/
|
|
15
|
-
itemProps?: HTMLUIProps<
|
|
15
|
+
itemProps?: HTMLUIProps<"button">;
|
|
16
16
|
/**
|
|
17
17
|
* If `true`, display the control buttons.
|
|
18
18
|
*
|
|
@@ -22,19 +22,19 @@ type PaginationOptions = {
|
|
|
22
22
|
/**
|
|
23
23
|
* Props for inner element.
|
|
24
24
|
*/
|
|
25
|
-
innerProps?: HTMLUIProps<
|
|
25
|
+
innerProps?: HTMLUIProps<"div">;
|
|
26
26
|
/**
|
|
27
27
|
* Props for control button element.
|
|
28
28
|
*/
|
|
29
|
-
controlProps?: HTMLUIProps<
|
|
29
|
+
controlProps?: HTMLUIProps<"button">;
|
|
30
30
|
/**
|
|
31
31
|
* Props for previous of the control button element.
|
|
32
32
|
*/
|
|
33
|
-
controlPrevProps?: HTMLUIProps<
|
|
33
|
+
controlPrevProps?: HTMLUIProps<"button">;
|
|
34
34
|
/**
|
|
35
35
|
* Props for next of the control button element.
|
|
36
36
|
*/
|
|
37
|
-
controlNextProps?: HTMLUIProps<
|
|
37
|
+
controlNextProps?: HTMLUIProps<"button">;
|
|
38
38
|
/**
|
|
39
39
|
* If `true`, display the edge buttons.
|
|
40
40
|
*
|
|
@@ -44,17 +44,17 @@ type PaginationOptions = {
|
|
|
44
44
|
/**
|
|
45
45
|
* Props for edge button element.
|
|
46
46
|
*/
|
|
47
|
-
edgeProps?: HTMLUIProps<
|
|
47
|
+
edgeProps?: HTMLUIProps<"button">;
|
|
48
48
|
/**
|
|
49
49
|
* Props for first of the edge button element.
|
|
50
50
|
*/
|
|
51
|
-
edgeFirstProps?: HTMLUIProps<
|
|
51
|
+
edgeFirstProps?: HTMLUIProps<"button">;
|
|
52
52
|
/**
|
|
53
53
|
* Props for last of the edge button element.
|
|
54
54
|
*/
|
|
55
|
-
edgeLastProps?: HTMLUIProps<
|
|
55
|
+
edgeLastProps?: HTMLUIProps<"button">;
|
|
56
56
|
};
|
|
57
|
-
type PaginationProps = Omit<HTMLUIProps<
|
|
57
|
+
type PaginationProps = Omit<HTMLUIProps<"div">, "onChange" | "children"> & ThemeProps<"Pagination"> & UsePaginationProps & PaginationOptions;
|
|
58
58
|
declare const Pagination: _yamada_ui_core.Component<"div", PaginationProps>;
|
|
59
59
|
|
|
60
60
|
export { Pagination, PaginationProps };
|
package/dist/pagination.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ type PaginationOptions = {
|
|
|
12
12
|
/**
|
|
13
13
|
* Props for button element.
|
|
14
14
|
*/
|
|
15
|
-
itemProps?: HTMLUIProps<
|
|
15
|
+
itemProps?: HTMLUIProps<"button">;
|
|
16
16
|
/**
|
|
17
17
|
* If `true`, display the control buttons.
|
|
18
18
|
*
|
|
@@ -22,19 +22,19 @@ type PaginationOptions = {
|
|
|
22
22
|
/**
|
|
23
23
|
* Props for inner element.
|
|
24
24
|
*/
|
|
25
|
-
innerProps?: HTMLUIProps<
|
|
25
|
+
innerProps?: HTMLUIProps<"div">;
|
|
26
26
|
/**
|
|
27
27
|
* Props for control button element.
|
|
28
28
|
*/
|
|
29
|
-
controlProps?: HTMLUIProps<
|
|
29
|
+
controlProps?: HTMLUIProps<"button">;
|
|
30
30
|
/**
|
|
31
31
|
* Props for previous of the control button element.
|
|
32
32
|
*/
|
|
33
|
-
controlPrevProps?: HTMLUIProps<
|
|
33
|
+
controlPrevProps?: HTMLUIProps<"button">;
|
|
34
34
|
/**
|
|
35
35
|
* Props for next of the control button element.
|
|
36
36
|
*/
|
|
37
|
-
controlNextProps?: HTMLUIProps<
|
|
37
|
+
controlNextProps?: HTMLUIProps<"button">;
|
|
38
38
|
/**
|
|
39
39
|
* If `true`, display the edge buttons.
|
|
40
40
|
*
|
|
@@ -44,17 +44,17 @@ type PaginationOptions = {
|
|
|
44
44
|
/**
|
|
45
45
|
* Props for edge button element.
|
|
46
46
|
*/
|
|
47
|
-
edgeProps?: HTMLUIProps<
|
|
47
|
+
edgeProps?: HTMLUIProps<"button">;
|
|
48
48
|
/**
|
|
49
49
|
* Props for first of the edge button element.
|
|
50
50
|
*/
|
|
51
|
-
edgeFirstProps?: HTMLUIProps<
|
|
51
|
+
edgeFirstProps?: HTMLUIProps<"button">;
|
|
52
52
|
/**
|
|
53
53
|
* Props for last of the edge button element.
|
|
54
54
|
*/
|
|
55
|
-
edgeLastProps?: HTMLUIProps<
|
|
55
|
+
edgeLastProps?: HTMLUIProps<"button">;
|
|
56
56
|
};
|
|
57
|
-
type PaginationProps = Omit<HTMLUIProps<
|
|
57
|
+
type PaginationProps = Omit<HTMLUIProps<"div">, "onChange" | "children"> & ThemeProps<"Pagination"> & UsePaginationProps & PaginationOptions;
|
|
58
58
|
declare const Pagination: _yamada_ui_core.Component<"div", PaginationProps>;
|
|
59
59
|
|
|
60
60
|
export { Pagination, PaginationProps };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yamada-ui/pagination",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.17",
|
|
4
4
|
"description": "Yamada UI pagination component",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"yamada",
|
|
@@ -35,11 +35,11 @@
|
|
|
35
35
|
"url": "https://github.com/hirotomoyamada/yamada-ui/issues"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@yamada-ui/core": "0.12.
|
|
38
|
+
"@yamada-ui/core": "0.12.6",
|
|
39
39
|
"@yamada-ui/utils": "0.3.3",
|
|
40
|
-
"@yamada-ui/icon": "0.3.
|
|
40
|
+
"@yamada-ui/icon": "0.3.16",
|
|
41
41
|
"@yamada-ui/use-controllable-state": "0.3.0",
|
|
42
|
-
"@yamada-ui/use-value": "0.2.
|
|
42
|
+
"@yamada-ui/use-value": "0.2.16"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"react": "^18.0.0",
|