react-magma-dom 7.1.0-next.19 → 7.1.0-next.20

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/ai/SKILL.md CHANGED
@@ -3,9 +3,9 @@ name: react-magma
3
3
  description: Use when writing or editing React UI in a project that depends on react-magma-dom (Cengage's accessible component library) — finding the right component, its props, theming, inverse surfaces, icons and accessibility.
4
4
  ---
5
5
 
6
- # React Magma (react-magma-dom 7.1.0-next.19)
6
+ # React Magma (react-magma-dom 7.1.0-next.20)
7
7
 
8
- Accessible React component library. This guide is generated for react-magma-dom 7.1.0-next.19, which requires React ^18.3.1.
8
+ Accessible React component library. This guide is generated for react-magma-dom 7.1.0-next.20, which requires React ^18.3.1.
9
9
 
10
10
  ## How to use this guide
11
11
 
@@ -4,4 +4,6 @@ export interface PageButtonProps extends ButtonProps {
4
4
  isSelected?: boolean;
5
5
  }
6
6
  export declare function pageButtonTypeSize(props: any): string;
7
+ export declare function pageButtonTypeLineHeight(props: any): string;
8
+ export declare function pageButtonTypeLetterSpacing(props: any): string;
7
9
  export declare const PageButton: React.ForwardRefExoticComponent<PageButtonProps & React.RefAttributes<HTMLButtonElement>>;
@@ -16,6 +16,11 @@ export interface BasePaginationProps extends React.HTMLAttributes<HTMLDivElement
16
16
  * @default false
17
17
  */
18
18
  disabled?: boolean;
19
+ /**
20
+ * If true, ellipses in classic Pagination become page-jump controls.
21
+ * @default false
22
+ */
23
+ enablePageJump?: boolean;
19
24
  /**
20
25
  * If true, hides the next page button
21
26
  * @default false
@@ -10,6 +10,7 @@ export declare const Default: {
10
10
  hideNextButton: boolean;
11
11
  isInverse: boolean;
12
12
  disabled: boolean;
13
+ enablePageJump: boolean;
13
14
  };
14
15
  };
15
16
  export declare const DefaultSelected: {
@@ -20,6 +21,29 @@ export declare const DefaultSelected: {
20
21
  hideNextButton: boolean;
21
22
  isInverse: boolean;
22
23
  disabled: boolean;
24
+ enablePageJump: boolean;
25
+ };
26
+ };
27
+ export declare const LargePageCount: {
28
+ args: {
29
+ count: number;
30
+ defaultPage: number;
31
+ enablePageJump: boolean;
32
+ hidePreviousButton: boolean;
33
+ hideNextButton: boolean;
34
+ isInverse: boolean;
35
+ disabled: boolean;
36
+ };
37
+ };
38
+ export declare const PageJump: {
39
+ args: {
40
+ count: number;
41
+ defaultPage: number;
42
+ enablePageJump: boolean;
43
+ hidePreviousButton: boolean;
44
+ hideNextButton: boolean;
45
+ isInverse: boolean;
46
+ disabled: boolean;
23
47
  };
24
48
  };
25
49
  export declare const AdjacentPages: {
@@ -31,6 +55,7 @@ export declare const AdjacentPages: {
31
55
  hideNextButton: boolean;
32
56
  isInverse: boolean;
33
57
  disabled: boolean;
58
+ enablePageJump: boolean;
34
59
  };
35
60
  };
36
61
  export declare const EdgePages: {
@@ -42,6 +67,7 @@ export declare const EdgePages: {
42
67
  hideNextButton: boolean;
43
68
  isInverse: boolean;
44
69
  disabled: boolean;
70
+ enablePageJump: boolean;
45
71
  };
46
72
  };
47
73
  export declare const Size: {
@@ -52,6 +78,7 @@ export declare const Size: {
52
78
  hideNextButton: boolean;
53
79
  isInverse: boolean;
54
80
  disabled: boolean;
81
+ enablePageJump: boolean;
55
82
  };
56
83
  };
57
84
  export declare const SimplePagination: {
@@ -62,6 +89,7 @@ export declare const SimplePagination: {
62
89
  hideNextButton: boolean;
63
90
  isInverse: boolean;
64
91
  disabled: boolean;
92
+ enablePageJump: boolean;
65
93
  };
66
94
  parameters: {
67
95
  controls: {
@@ -79,6 +107,7 @@ export declare const SimplePaginationOnPageChange: {
79
107
  hideNextButton: boolean;
80
108
  isInverse: boolean;
81
109
  disabled: boolean;
110
+ enablePageJump: boolean;
82
111
  };
83
112
  parameters: {
84
113
  controls: {
@@ -55,6 +55,7 @@ export interface UsePaginationProps {
55
55
  showLastButton?: boolean;
56
56
  }
57
57
  export declare function usePagination(props?: Partial<UsePaginationProps>): {
58
+ handlePageChange: (event: any, value: any) => void;
58
59
  page: any;
59
60
  pageButtons: ({
60
61
  onClick: (event: any) => void;
@@ -5,6 +5,7 @@ interface PaginationI18n {
5
5
  pagesLabel: string;
6
6
  selectedLabel: string;
7
7
  }
8
+ export declare const formatPageNumber: (pageNumber: number) => string;
8
9
  export declare const paginationLabel: (count: number, pagination: PaginationI18n) => string;
9
10
  export declare const pageAriaLabel: (selectedPage: number, count: number, pagination: PaginationI18n) => string;
10
11
  export {};