@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.
@@ -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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arc-ui/components",
3
- "version": "11.24.2",
3
+ "version": "11.25.0",
4
4
  "homepage": "https://ui.digital-ent-int.bt.com",
5
5
  "author": "BT Enterprise Digital UI Team <ui-digital-ent-int@bt.com>",
6
6
  "main": "./dist/index.js",