@availity/mui-pagination 1.0.12 → 2.0.1

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.1](https://github.com/Availity/element/compare/@availity/mui-pagination@2.0.0...@availity/mui-pagination@2.0.1) (2025-12-03)
6
+
7
+ ### Dependency Updates
8
+
9
+ * `mui-icon` updated to version `2.0.0`
10
+ * `mui-layout` updated to version `2.0.0`
11
+ * `mui-list` updated to version `2.0.0`
12
+ ## [2.0.0](https://github.com/Availity/element/compare/@availity/mui-pagination@1.0.12...@availity/mui-pagination@2.0.0) (2025-11-17)
13
+
14
+ ### Dependency Updates
15
+
16
+ * `mui-icon` updated to version `1.0.12`
17
+ * `mui-layout` updated to version `1.0.12`
18
+ * `mui-list` updated to version `1.0.12`
19
+
20
+ ### ⚠ BREAKING CHANGES
21
+
22
+ * @mui/material upgraded to v7
23
+ * @mui/x-* upgraded to v8
24
+ * react upgraded to v19
25
+
26
+ ### Features
27
+
28
+ * upgrade material and react dependencies ([51602a4](https://github.com/Availity/element/commit/51602a48c5304db6f61e2c7e772c9a3a4aa3f65c))
29
+
5
30
  ## [1.0.12](https://github.com/Availity/element/compare/@availity/mui-pagination@1.0.11...@availity/mui-pagination@1.0.12) (2025-10-30)
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/introduction.mdx CHANGED
@@ -1,5 +1,4 @@
1
- import { Markdown } from '@storybook/blocks';
2
- import { Meta } from '@storybook/addon-docs';
1
+ import { Markdown, Meta } from '@storybook/addon-docs/blocks';
3
2
  import ReadMe from './README.md?raw';
4
3
  import CHANGELOG from './CHANGELOG.md?raw';
5
4
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@availity/mui-pagination",
3
- "version": "1.0.12",
3
+ "version": "2.0.1",
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.1",
44
- "@mui/material": "^6.4.5",
43
+ "@availity/mui-icon": "2.0.1",
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.1",
53
- "@mui/material": "^6.4.5",
52
+ "@availity/mui-icon": "2.0.1",
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": {
@@ -1,6 +1,6 @@
1
1
  // Each exported component in the package should have its own stories file
2
2
 
3
- import type { Meta, StoryObj } from '@storybook/react';
3
+ import type { Meta, StoryObj } from '@storybook/react-vite';
4
4
  import { Grid } from '@availity/mui-layout';
5
5
  import { Pagination, PaginationProps } from './Pagination';
6
6
 
@@ -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
  );
@@ -1,6 +1,6 @@
1
1
  // Each exported component in the package should have its own stories file
2
2
 
3
- import type { Meta, StoryObj } from '@storybook/react';
3
+ import type { Meta, StoryObj } from '@storybook/react-vite';
4
4
  import { Grid } from '@availity/mui-layout';
5
5
  import { PaginationItem, PaginationItemProps } from './PaginationItem';
6
6
 
@@ -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
  };
@@ -1,6 +1,6 @@
1
1
  // Each exported component in the package should have its own stories file
2
2
 
3
- import type { Meta, StoryObj } from '@storybook/react';
3
+ import type { Meta, StoryObj } from '@storybook/react-vite';
4
4
  import { Box } from '@availity/mui-layout';
5
5
  import { avOrganizationsApi } from '@availity/api-axios';
6
6
  import { List, ListItem, ListItemText } from '@availity/mui-list';
@@ -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,