@availity/mui-pagination 1.0.11 → 2.0.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/CHANGELOG.md CHANGED
@@ -2,6 +2,31 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [2.0.0](https://github.com/Availity/element/compare/@availity/mui-pagination@1.0.12...@availity/mui-pagination@2.0.0) (2025-11-17)
6
+
7
+ ### Dependency Updates
8
+
9
+ * `mui-icon` updated to version `1.0.12`
10
+ * `mui-layout` updated to version `1.0.12`
11
+ * `mui-list` updated to version `1.0.12`
12
+
13
+ ### ⚠ BREAKING CHANGES
14
+
15
+ * @mui/material upgraded to v7
16
+ * @mui/x-* upgraded to v8
17
+ * react upgraded to v19
18
+
19
+ ### Features
20
+
21
+ * upgrade material and react dependencies ([51602a4](https://github.com/Availity/element/commit/51602a48c5304db6f61e2c7e772c9a3a4aa3f65c))
22
+
23
+ ## [1.0.12](https://github.com/Availity/element/compare/@availity/mui-pagination@1.0.11...@availity/mui-pagination@1.0.12) (2025-10-30)
24
+
25
+ ### Dependency Updates
26
+
27
+ * `mui-icon` updated to version `1.0.11`
28
+ * `mui-layout` updated to version `1.0.11`
29
+ * `mui-list` updated to version `1.0.11`
5
30
  ## [1.0.11](https://github.com/Availity/element/compare/@availity/mui-pagination@1.0.10...@availity/mui-pagination@1.0.11) (2025-10-09)
6
31
 
7
32
  ### Dependency Updates
package/dist/index.d.mts CHANGED
@@ -7,10 +7,10 @@ type PaginationProps = {
7
7
  * @default 'determined by theme' */
8
8
  size?: 'medium' | 'large';
9
9
  } & Omit<PaginationProps$1, 'color' | 'getItemAriaLabel' | 'renderItem' | 'shape' | 'size'>;
10
- declare const Pagination: (props: PaginationProps) => JSX.Element;
10
+ declare const Pagination: (props: PaginationProps) => React.JSX.Element;
11
11
 
12
12
  type PaginationItemProps = Omit<PaginationItemProps$1, 'components' | 'color' | 'shape' | 'size'>;
13
- declare const PaginationItem: (props: PaginationItemProps) => JSX.Element;
13
+ declare const PaginationItem: (props: PaginationItemProps) => React.JSX.Element;
14
14
 
15
15
  type Resource<TData> = {
16
16
  postGet: (request: {
package/dist/index.d.ts CHANGED
@@ -7,10 +7,10 @@ type PaginationProps = {
7
7
  * @default 'determined by theme' */
8
8
  size?: 'medium' | 'large';
9
9
  } & Omit<PaginationProps$1, 'color' | 'getItemAriaLabel' | 'renderItem' | 'shape' | 'size'>;
10
- declare const Pagination: (props: PaginationProps) => JSX.Element;
10
+ declare const Pagination: (props: PaginationProps) => React.JSX.Element;
11
11
 
12
12
  type PaginationItemProps = Omit<PaginationItemProps$1, 'components' | 'color' | 'shape' | 'size'>;
13
- declare const PaginationItem: (props: PaginationItemProps) => JSX.Element;
13
+ declare const PaginationItem: (props: PaginationItemProps) => React.JSX.Element;
14
14
 
15
15
  type Resource<TData> = {
16
16
  postGet: (request: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@availity/mui-pagination",
3
- "version": "1.0.11",
3
+ "version": "2.0.0",
4
4
  "description": "Availity MUI Pagination Component - part of the @availity/element design system",
5
5
  "keywords": [
6
6
  "react",
@@ -40,19 +40,19 @@
40
40
  "publish:canary": "yarn npm publish --access public --tag canary"
41
41
  },
42
42
  "devDependencies": {
43
- "@availity/mui-icon": "1.1.0",
44
- "@mui/material": "^6.4.5",
43
+ "@availity/mui-icon": "2.0.0",
44
+ "@mui/material": "^7.3.4",
45
45
  "@tanstack/react-query": "^4.36.1",
46
- "react": "18.2.0",
47
- "react-dom": "18.2.0",
46
+ "react": "19.2.0",
47
+ "react-dom": "19.2.0",
48
48
  "tsup": "^8.4.0",
49
49
  "typescript": "^5.4.5"
50
50
  },
51
51
  "peerDependencies": {
52
- "@availity/mui-icon": "1.1.0",
53
- "@mui/material": "^6.4.5",
52
+ "@availity/mui-icon": "2.0.0",
53
+ "@mui/material": "^7.0.0",
54
54
  "@tanstack/react-query": "^4.36.1",
55
- "react": ">=16.3.0"
55
+ "react": ">=17.0.0"
56
56
  },
57
57
  "peerDependenciesMeta": {
58
58
  "@tanstack/react-query": {
@@ -61,5 +61,6 @@
61
61
  },
62
62
  "publishConfig": {
63
63
  "access": "public"
64
- }
64
+ },
65
+ "sideEffects": false
65
66
  }
@@ -12,7 +12,7 @@ const getItemAriaLabel: MuiPaginationProps['getItemAriaLabel'] = (type, page) =>
12
12
  return `Go to ${type} page`;
13
13
  };
14
14
 
15
- export const Pagination = (props: PaginationProps): JSX.Element => {
15
+ export const Pagination = (props: PaginationProps): React.JSX.Element => {
16
16
  return (
17
17
  <MuiPagination {...props} getItemAriaLabel={getItemAriaLabel} renderItem={(item) => <PaginationItem {...item} />} />
18
18
  );
@@ -29,6 +29,6 @@ const slots = {
29
29
  ),
30
30
  };
31
31
 
32
- export const PaginationItem = (props: PaginationItemProps): JSX.Element => {
32
+ export const PaginationItem = (props: PaginationItemProps): React.JSX.Element => {
33
33
  return <MuiPaginationItem slots={slots} {...props} />;
34
34
  };
@@ -18,9 +18,12 @@ afterEach(() => {
18
18
  server.resetHandlers();
19
19
  });
20
20
 
21
+ // terminate the server
22
+ afterAll(() => server.close());
23
+
21
24
  const client = new QueryClient();
22
25
 
23
- const ResourcePaginationComponent = (): JSX.Element => {
26
+ const ResourcePaginationComponent = (): React.JSX.Element => {
24
27
  const resp = useResourcePagination({
25
28
  page: 1,
26
29
  resource: avOrganizationsApi,