@availity/mui-pagination 0.1.1 → 0.2.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,13 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [0.2.0](https://github.com/Availity/element/compare/@availity/mui-pagination@0.1.1...@availity/mui-pagination@0.2.0) (2023-09-13)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **mui-pagination:** limit sizes ([77adde6](https://github.com/Availity/element/commit/77adde654bee70d006787a451f9b031e96f2a580))
|
|
11
|
+
|
|
5
12
|
## [0.1.1](https://github.com/Availity/element/compare/@availity/mui-pagination@0.1.0...@availity/mui-pagination@0.1.1) (2023-09-11)
|
|
6
13
|
|
|
7
14
|
## 0.1.0 (2023-09-11)
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { PaginationProps as PaginationProps$1, PaginationItemProps as PaginationItemProps$1 } from '@mui/material';
|
|
2
2
|
|
|
3
|
-
type PaginationProps =
|
|
3
|
+
type PaginationProps = {
|
|
4
|
+
/** The size of the component
|
|
5
|
+
* @default 'determined by theme' */
|
|
6
|
+
size?: 'medium' | 'large';
|
|
7
|
+
} & Omit<PaginationProps$1, 'color' | 'getItemAriaLabel' | 'renderItem' | 'shape' | 'size'>;
|
|
4
8
|
declare const Pagination: ({ ...rest }: PaginationProps) => JSX.Element;
|
|
5
9
|
|
|
6
|
-
type PaginationItemProps = Omit<PaginationItemProps$1, 'components' | 'color' | 'shape'>;
|
|
10
|
+
type PaginationItemProps = Omit<PaginationItemProps$1, 'components' | 'color' | 'shape' | 'size'>;
|
|
7
11
|
declare const PaginationItem: (props: PaginationItemProps) => JSX.Element;
|
|
8
12
|
|
|
9
13
|
export { Pagination, PaginationItem, PaginationItemProps, PaginationProps };
|
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
package/src/lib/Pagination.tsx
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Pagination as MuiPagination,
|
|
3
|
-
PaginationProps as MuiPaginationProps,
|
|
4
|
-
PaginationPropsSizeOverrides,
|
|
5
|
-
} from '@mui/material';
|
|
1
|
+
import { Pagination as MuiPagination, PaginationProps as MuiPaginationProps } from '@mui/material';
|
|
6
2
|
import { PaginationItem } from './PaginationItem';
|
|
7
3
|
|
|
8
|
-
export type PaginationProps =
|
|
4
|
+
export type PaginationProps = {
|
|
5
|
+
/** The size of the component
|
|
6
|
+
* @default 'determined by theme' */
|
|
7
|
+
size?: 'medium' | 'large';
|
|
8
|
+
} & Omit<MuiPaginationProps, 'color' | 'getItemAriaLabel' | 'renderItem' | 'shape' | 'size'>;
|
|
9
9
|
|
|
10
10
|
export const Pagination = ({ ...rest }: PaginationProps): JSX.Element => {
|
|
11
11
|
return <MuiPagination {...rest} renderItem={(item) => <PaginationItem {...item} />} />;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PaginationItem as MuiPaginationItem, PaginationItemProps as MuiPaginationItemProps } from '@mui/material';
|
|
2
2
|
import { NavigateNextIcon, NavigatePreviousIcon } from '@availity/mui-icon';
|
|
3
3
|
|
|
4
|
-
export type PaginationItemProps = Omit<MuiPaginationItemProps, 'components' | 'color' | 'shape'>;
|
|
4
|
+
export type PaginationItemProps = Omit<MuiPaginationItemProps, 'components' | 'color' | 'shape' | 'size'>;
|
|
5
5
|
|
|
6
6
|
const slots = {
|
|
7
7
|
first: () => (
|