@arc-ui/components 11.24.2 → 11.25.0
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/dist/PaginationSimple/PaginationSimple.cjs.js +23 -2
- package/dist/PaginationSimple/PaginationSimple.esm.js +23 -2
- package/dist/index.es.js +23 -2
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +23 -2
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/types/components/PaginationSimple/PaginationSimple.d.ts +28 -0
- package/package.json +1 -1
|
@@ -4,6 +4,14 @@ import React, { FC } from "react";
|
|
|
4
4
|
*/
|
|
5
5
|
export declare const PaginationSimple: FC<PaginationSimpleProps>;
|
|
6
6
|
export interface PaginationSimpleProps {
|
|
7
|
+
/**
|
|
8
|
+
* hides first button if true.
|
|
9
|
+
*/
|
|
10
|
+
hideFirst?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* hides last button if true.
|
|
13
|
+
*/
|
|
14
|
+
hideLast?: boolean;
|
|
7
15
|
/**
|
|
8
16
|
* hides prev button if true.
|
|
9
17
|
*/
|
|
@@ -20,10 +28,22 @@ export interface PaginationSimpleProps {
|
|
|
20
28
|
* makes next button a link
|
|
21
29
|
*/
|
|
22
30
|
nextHref?: string;
|
|
31
|
+
/**
|
|
32
|
+
* makes first button a link
|
|
33
|
+
*/
|
|
34
|
+
firstHref?: string;
|
|
35
|
+
/**
|
|
36
|
+
* makes last button a link
|
|
37
|
+
*/
|
|
38
|
+
lastHref?: string;
|
|
23
39
|
/**
|
|
24
40
|
* if true buttons will hug either edge of the parent element
|
|
25
41
|
*/
|
|
26
42
|
isFluid?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* if true ellipsis will show in-between previous and next
|
|
45
|
+
*/
|
|
46
|
+
showEllipsis?: boolean;
|
|
27
47
|
/**
|
|
28
48
|
* Function to call when previous page is selected
|
|
29
49
|
*/
|
|
@@ -32,4 +52,12 @@ export interface PaginationSimpleProps {
|
|
|
32
52
|
* Function to call when next page is selected
|
|
33
53
|
*/
|
|
34
54
|
onNextPage?: (e: React.MouseEvent) => void;
|
|
55
|
+
/**
|
|
56
|
+
* Function to call when first page is selected
|
|
57
|
+
*/
|
|
58
|
+
onFirstPage?: (e: React.MouseEvent) => void;
|
|
59
|
+
/**
|
|
60
|
+
* Function to call when last page is selected
|
|
61
|
+
*/
|
|
62
|
+
onLastPage?: (e: React.MouseEvent) => void;
|
|
35
63
|
}
|