@availity/mui-pagination 0.2.7 → 0.2.8
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 +10 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +10 -4
- package/dist/index.mjs +4 -2
- package/package.json +3 -3
- package/src/lib/Pagination.stories.tsx +1 -1
- package/src/lib/Pagination.tsx +1 -1
- package/src/lib/PaginationItem.stories.tsx +1 -1
- package/src/lib/PaginationItem.tsx +4 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [0.2.8](https://github.com/Availity/element/compare/@availity/mui-pagination@0.2.7...@availity/mui-pagination@0.2.8) (2024-04-04)
|
|
6
|
+
|
|
7
|
+
### Dependency Updates
|
|
8
|
+
|
|
9
|
+
* `mui-icon` updated to version `0.8.1`
|
|
10
|
+
|
|
11
|
+
### Performance Improvements
|
|
12
|
+
|
|
13
|
+
* **mui-pagination:** use path imports for material deps ([2fbc09c](https://github.com/Availity/element/commit/2fbc09c6cd5efd5a89d2bfcb6b5ca85574f5c78f))
|
|
14
|
+
|
|
5
15
|
## [0.2.7](https://github.com/Availity/element/compare/@availity/mui-pagination@0.2.6...@availity/mui-pagination@0.2.7) (2024-03-15)
|
|
6
16
|
|
|
7
17
|
### Dependency Updates
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { PaginationProps as PaginationProps$1
|
|
1
|
+
import { PaginationProps as PaginationProps$1 } from '@mui/material/Pagination';
|
|
2
|
+
import { PaginationItemProps as PaginationItemProps$1 } from '@mui/material/PaginationItem';
|
|
2
3
|
|
|
3
4
|
type PaginationProps = {
|
|
4
5
|
/** The size of the component
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
5
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
8
|
var __export = (target, all) => {
|
|
7
9
|
for (var name in all)
|
|
@@ -15,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
17
|
}
|
|
16
18
|
return to;
|
|
17
19
|
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
22
|
+
mod
|
|
23
|
+
));
|
|
18
24
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
25
|
|
|
20
26
|
// src/index.ts
|
|
@@ -26,10 +32,10 @@ __export(src_exports, {
|
|
|
26
32
|
module.exports = __toCommonJS(src_exports);
|
|
27
33
|
|
|
28
34
|
// src/lib/Pagination.tsx
|
|
29
|
-
var
|
|
35
|
+
var import_Pagination = __toESM(require("@mui/material/Pagination"));
|
|
30
36
|
|
|
31
37
|
// src/lib/PaginationItem.tsx
|
|
32
|
-
var
|
|
38
|
+
var import_PaginationItem = __toESM(require("@mui/material/PaginationItem"));
|
|
33
39
|
var import_mui_icon = require("@availity/mui-icon");
|
|
34
40
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
35
41
|
var slots = {
|
|
@@ -67,7 +73,7 @@ var slots = {
|
|
|
67
73
|
})
|
|
68
74
|
};
|
|
69
75
|
var PaginationItem = (props) => {
|
|
70
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
76
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_PaginationItem.default, {
|
|
71
77
|
slots,
|
|
72
78
|
...props
|
|
73
79
|
});
|
|
@@ -76,7 +82,7 @@ var PaginationItem = (props) => {
|
|
|
76
82
|
// src/lib/Pagination.tsx
|
|
77
83
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
78
84
|
var Pagination = ({ ...rest }) => {
|
|
79
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
85
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Pagination.default, {
|
|
80
86
|
...rest,
|
|
81
87
|
renderItem: (item) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PaginationItem, {
|
|
82
88
|
...item
|
package/dist/index.mjs
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
// src/lib/Pagination.tsx
|
|
2
|
-
import {
|
|
2
|
+
import { default as MuiPagination } from "@mui/material/Pagination";
|
|
3
3
|
|
|
4
4
|
// src/lib/PaginationItem.tsx
|
|
5
|
-
import {
|
|
5
|
+
import {
|
|
6
|
+
default as MuiPaginationItem
|
|
7
|
+
} from "@mui/material/PaginationItem";
|
|
6
8
|
import { NavigateNextIcon, NavigatePreviousIcon } from "@availity/mui-icon";
|
|
7
9
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
8
10
|
var slots = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@availity/mui-pagination",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.8",
|
|
4
4
|
"description": "Availity MUI Pagination Component - part of the @availity/element design system",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"publish:canary": "yarn npm publish --access public --tag canary"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@availity/mui-icon": "0.8.
|
|
35
|
+
"@availity/mui-icon": "0.8.1",
|
|
36
36
|
"@mui/material": "^5.14.12",
|
|
37
37
|
"react": "18.2.0",
|
|
38
38
|
"react-dom": "18.2.0",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"typescript": "^4.6.4"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"@availity/mui-icon": "0.8.
|
|
43
|
+
"@availity/mui-icon": "0.8.1",
|
|
44
44
|
"@mui/material": "^5.11.9",
|
|
45
45
|
"react": ">=16.3.0"
|
|
46
46
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Each exported component in the package should have its own stories file
|
|
2
2
|
|
|
3
3
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
4
|
-
import
|
|
4
|
+
import Grid from '@mui/material/Grid';
|
|
5
5
|
import { Pagination, PaginationProps } from './Pagination';
|
|
6
6
|
|
|
7
7
|
const meta: Meta<typeof Pagination> = {
|
package/src/lib/Pagination.tsx
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { default as MuiPagination, PaginationProps as MuiPaginationProps } from '@mui/material/Pagination';
|
|
2
2
|
import { PaginationItem } from './PaginationItem';
|
|
3
3
|
|
|
4
4
|
export type PaginationProps = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Each exported component in the package should have its own stories file
|
|
2
2
|
|
|
3
3
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
4
|
-
import
|
|
4
|
+
import Grid from '@mui/material/Grid';
|
|
5
5
|
import { PaginationItem, PaginationItemProps } from './PaginationItem';
|
|
6
6
|
|
|
7
7
|
const meta: Meta<typeof PaginationItem> = {
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
default as MuiPaginationItem,
|
|
3
|
+
PaginationItemProps as MuiPaginationItemProps,
|
|
4
|
+
} from '@mui/material/PaginationItem';
|
|
2
5
|
import { NavigateNextIcon, NavigatePreviousIcon } from '@availity/mui-icon';
|
|
3
6
|
|
|
4
7
|
export type PaginationItemProps = Omit<MuiPaginationItemProps, 'components' | 'color' | 'shape' | 'size'>;
|