@availity/mui-pagination 0.2.7 → 0.2.9
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 +15 -0
- package/dist/index.d.mts +14 -0
- package/dist/index.d.ts +3 -2
- package/dist/index.js +62 -46
- package/dist/index.mjs +56 -45
- package/jest.config.js +10 -0
- package/package.json +6 -6
- package/project.json +8 -9
- 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,21 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [0.2.9](https://github.com/Availity/element/compare/@availity/mui-pagination@0.2.8...@availity/mui-pagination@0.2.9) (2024-04-19)
|
|
6
|
+
|
|
7
|
+
### Dependency Updates
|
|
8
|
+
|
|
9
|
+
* `mui-icon` updated to version `0.2.8`
|
|
10
|
+
## [0.2.8](https://github.com/Availity/element/compare/@availity/mui-pagination@0.2.7...@availity/mui-pagination@0.2.8) (2024-04-04)
|
|
11
|
+
|
|
12
|
+
### Dependency Updates
|
|
13
|
+
|
|
14
|
+
* `mui-icon` updated to version `0.8.1`
|
|
15
|
+
|
|
16
|
+
### Performance Improvements
|
|
17
|
+
|
|
18
|
+
* **mui-pagination:** use path imports for material deps ([2fbc09c](https://github.com/Availity/element/commit/2fbc09c6cd5efd5a89d2bfcb6b5ca85574f5c78f))
|
|
19
|
+
|
|
5
20
|
## [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
21
|
|
|
7
22
|
### Dependency Updates
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { PaginationProps as PaginationProps$1 } from '@mui/material/Pagination';
|
|
2
|
+
import { PaginationItemProps as PaginationItemProps$1 } from '@mui/material/PaginationItem';
|
|
3
|
+
|
|
4
|
+
type PaginationProps = {
|
|
5
|
+
/** The size of the component
|
|
6
|
+
* @default 'determined by theme' */
|
|
7
|
+
size?: 'medium' | 'large';
|
|
8
|
+
} & Omit<PaginationProps$1, 'color' | 'getItemAriaLabel' | 'renderItem' | 'shape' | 'size'>;
|
|
9
|
+
declare const Pagination: ({ ...rest }: PaginationProps) => JSX.Element;
|
|
10
|
+
|
|
11
|
+
type PaginationItemProps = Omit<PaginationItemProps$1, 'components' | 'color' | 'shape' | 'size'>;
|
|
12
|
+
declare const PaginationItem: (props: PaginationItemProps) => JSX.Element;
|
|
13
|
+
|
|
14
|
+
export { Pagination, PaginationItem, type PaginationItemProps, type PaginationProps };
|
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
|
|
@@ -10,4 +11,4 @@ declare const Pagination: ({ ...rest }: PaginationProps) => JSX.Element;
|
|
|
10
11
|
type PaginationItemProps = Omit<PaginationItemProps$1, 'components' | 'color' | 'shape' | 'size'>;
|
|
11
12
|
declare const PaginationItem: (props: PaginationItemProps) => JSX.Element;
|
|
12
13
|
|
|
13
|
-
export { Pagination, PaginationItem, PaginationItemProps, PaginationProps };
|
|
14
|
+
export { Pagination, PaginationItem, type PaginationItemProps, type PaginationProps };
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,39 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
4
|
+
var __defProps = Object.defineProperties;
|
|
3
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
7
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
8
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
9
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
5
10
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
11
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
12
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
13
|
+
var __spreadValues = (a, b) => {
|
|
14
|
+
for (var prop in b || (b = {}))
|
|
15
|
+
if (__hasOwnProp.call(b, prop))
|
|
16
|
+
__defNormalProp(a, prop, b[prop]);
|
|
17
|
+
if (__getOwnPropSymbols)
|
|
18
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
19
|
+
if (__propIsEnum.call(b, prop))
|
|
20
|
+
__defNormalProp(a, prop, b[prop]);
|
|
21
|
+
}
|
|
22
|
+
return a;
|
|
23
|
+
};
|
|
24
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
25
|
+
var __objRest = (source, exclude) => {
|
|
26
|
+
var target = {};
|
|
27
|
+
for (var prop in source)
|
|
28
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
29
|
+
target[prop] = source[prop];
|
|
30
|
+
if (source != null && __getOwnPropSymbols)
|
|
31
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
32
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
33
|
+
target[prop] = source[prop];
|
|
34
|
+
}
|
|
35
|
+
return target;
|
|
36
|
+
};
|
|
6
37
|
var __export = (target, all) => {
|
|
7
38
|
for (var name in all)
|
|
8
39
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -15,6 +46,14 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
46
|
}
|
|
16
47
|
return to;
|
|
17
48
|
};
|
|
49
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
50
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
51
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
52
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
53
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
54
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
55
|
+
mod
|
|
56
|
+
));
|
|
18
57
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
58
|
|
|
20
59
|
// src/index.ts
|
|
@@ -26,62 +65,39 @@ __export(src_exports, {
|
|
|
26
65
|
module.exports = __toCommonJS(src_exports);
|
|
27
66
|
|
|
28
67
|
// src/lib/Pagination.tsx
|
|
29
|
-
var
|
|
68
|
+
var import_Pagination = __toESM(require("@mui/material/Pagination"));
|
|
30
69
|
|
|
31
70
|
// src/lib/PaginationItem.tsx
|
|
32
|
-
var
|
|
71
|
+
var import_PaginationItem = __toESM(require("@mui/material/PaginationItem"));
|
|
33
72
|
var import_mui_icon = require("@availity/mui-icon");
|
|
34
73
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
35
74
|
var slots = {
|
|
36
|
-
first: () => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}),
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
})
|
|
52
|
-
next: () => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
53
|
-
children: [
|
|
54
|
-
"Next ",
|
|
55
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_mui_icon.NavigateNextIcon, {
|
|
56
|
-
sx: { ml: ".2rem" }
|
|
57
|
-
})
|
|
58
|
-
]
|
|
59
|
-
}),
|
|
60
|
-
last: () => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
61
|
-
children: [
|
|
62
|
-
"Last ",
|
|
63
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_mui_icon.NavigateNextIcon, {
|
|
64
|
-
sx: { ml: ".2rem" }
|
|
65
|
-
})
|
|
66
|
-
]
|
|
67
|
-
})
|
|
75
|
+
first: () => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
76
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_mui_icon.NavigatePreviousIcon, { sx: { mr: ".2rem" } }),
|
|
77
|
+
" First"
|
|
78
|
+
] }),
|
|
79
|
+
previous: () => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
80
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_mui_icon.NavigatePreviousIcon, { sx: { mr: ".2rem" } }),
|
|
81
|
+
" Prev"
|
|
82
|
+
] }),
|
|
83
|
+
next: () => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
84
|
+
"Next ",
|
|
85
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_mui_icon.NavigateNextIcon, { sx: { ml: ".2rem" } })
|
|
86
|
+
] }),
|
|
87
|
+
last: () => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
88
|
+
"Last ",
|
|
89
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_mui_icon.NavigateNextIcon, { sx: { ml: ".2rem" } })
|
|
90
|
+
] })
|
|
68
91
|
};
|
|
69
92
|
var PaginationItem = (props) => {
|
|
70
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
71
|
-
slots,
|
|
72
|
-
...props
|
|
73
|
-
});
|
|
93
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_PaginationItem.default, __spreadValues({ slots }, props));
|
|
74
94
|
};
|
|
75
95
|
|
|
76
96
|
// src/lib/Pagination.tsx
|
|
77
|
-
var
|
|
78
|
-
var Pagination = (
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
renderItem: (item) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PaginationItem, {
|
|
82
|
-
...item
|
|
83
|
-
})
|
|
84
|
-
});
|
|
97
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
98
|
+
var Pagination = (_a) => {
|
|
99
|
+
var rest = __objRest(_a, []);
|
|
100
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_Pagination.default, __spreadProps(__spreadValues({}, rest), { renderItem: (item) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(PaginationItem, __spreadValues({}, item)) }));
|
|
85
101
|
};
|
|
86
102
|
// Annotate the CommonJS export names for ESM import in node:
|
|
87
103
|
0 && (module.exports = {
|
package/dist/index.mjs
CHANGED
|
@@ -1,60 +1,71 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
var __objRest = (source, exclude) => {
|
|
21
|
+
var target = {};
|
|
22
|
+
for (var prop in source)
|
|
23
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
24
|
+
target[prop] = source[prop];
|
|
25
|
+
if (source != null && __getOwnPropSymbols)
|
|
26
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
27
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
28
|
+
target[prop] = source[prop];
|
|
29
|
+
}
|
|
30
|
+
return target;
|
|
31
|
+
};
|
|
32
|
+
|
|
1
33
|
// src/lib/Pagination.tsx
|
|
2
|
-
import {
|
|
34
|
+
import { default as MuiPagination } from "@mui/material/Pagination";
|
|
3
35
|
|
|
4
36
|
// src/lib/PaginationItem.tsx
|
|
5
|
-
import {
|
|
37
|
+
import {
|
|
38
|
+
default as MuiPaginationItem
|
|
39
|
+
} from "@mui/material/PaginationItem";
|
|
6
40
|
import { NavigateNextIcon, NavigatePreviousIcon } from "@availity/mui-icon";
|
|
7
41
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
8
42
|
var slots = {
|
|
9
|
-
first: () => /* @__PURE__ */ jsxs(Fragment, {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}),
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
})
|
|
25
|
-
next: () => /* @__PURE__ */ jsxs(Fragment, {
|
|
26
|
-
children: [
|
|
27
|
-
"Next ",
|
|
28
|
-
/* @__PURE__ */ jsx(NavigateNextIcon, {
|
|
29
|
-
sx: { ml: ".2rem" }
|
|
30
|
-
})
|
|
31
|
-
]
|
|
32
|
-
}),
|
|
33
|
-
last: () => /* @__PURE__ */ jsxs(Fragment, {
|
|
34
|
-
children: [
|
|
35
|
-
"Last ",
|
|
36
|
-
/* @__PURE__ */ jsx(NavigateNextIcon, {
|
|
37
|
-
sx: { ml: ".2rem" }
|
|
38
|
-
})
|
|
39
|
-
]
|
|
40
|
-
})
|
|
43
|
+
first: () => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
44
|
+
/* @__PURE__ */ jsx(NavigatePreviousIcon, { sx: { mr: ".2rem" } }),
|
|
45
|
+
" First"
|
|
46
|
+
] }),
|
|
47
|
+
previous: () => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
48
|
+
/* @__PURE__ */ jsx(NavigatePreviousIcon, { sx: { mr: ".2rem" } }),
|
|
49
|
+
" Prev"
|
|
50
|
+
] }),
|
|
51
|
+
next: () => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
52
|
+
"Next ",
|
|
53
|
+
/* @__PURE__ */ jsx(NavigateNextIcon, { sx: { ml: ".2rem" } })
|
|
54
|
+
] }),
|
|
55
|
+
last: () => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
56
|
+
"Last ",
|
|
57
|
+
/* @__PURE__ */ jsx(NavigateNextIcon, { sx: { ml: ".2rem" } })
|
|
58
|
+
] })
|
|
41
59
|
};
|
|
42
60
|
var PaginationItem = (props) => {
|
|
43
|
-
return /* @__PURE__ */ jsx(MuiPaginationItem, {
|
|
44
|
-
slots,
|
|
45
|
-
...props
|
|
46
|
-
});
|
|
61
|
+
return /* @__PURE__ */ jsx(MuiPaginationItem, __spreadValues({ slots }, props));
|
|
47
62
|
};
|
|
48
63
|
|
|
49
64
|
// src/lib/Pagination.tsx
|
|
50
65
|
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
51
|
-
var Pagination = (
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
renderItem: (item) => /* @__PURE__ */ jsx2(PaginationItem, {
|
|
55
|
-
...item
|
|
56
|
-
})
|
|
57
|
-
});
|
|
66
|
+
var Pagination = (_a) => {
|
|
67
|
+
var rest = __objRest(_a, []);
|
|
68
|
+
return /* @__PURE__ */ jsx2(MuiPagination, __spreadProps(__spreadValues({}, rest), { renderItem: (item) => /* @__PURE__ */ jsx2(PaginationItem, __spreadValues({}, item)) }));
|
|
58
69
|
};
|
|
59
70
|
export {
|
|
60
71
|
Pagination,
|
package/jest.config.js
CHANGED
|
@@ -4,4 +4,14 @@ module.exports = {
|
|
|
4
4
|
...global,
|
|
5
5
|
displayName: 'pagination',
|
|
6
6
|
coverageDirectory: '../../coverage/pagination',
|
|
7
|
+
/* TODO: Update to latest Jest snapshotFormat
|
|
8
|
+
* By default Nx has kept the older style of Jest Snapshot formats
|
|
9
|
+
* to prevent breaking of any existing tests with snapshots.
|
|
10
|
+
* It's recommend you update to the latest format.
|
|
11
|
+
* You can do this by removing snapshotFormat property
|
|
12
|
+
* and running tests with --update-snapshot flag.
|
|
13
|
+
* Example: From within the project directory, run "nx test --update-snapshot"
|
|
14
|
+
* More info: https://jestjs.io/docs/upgrading-to-jest29#snapshot-format
|
|
15
|
+
*/
|
|
16
|
+
snapshotFormat: { escapeString: true, printBasicPrototype: true },
|
|
7
17
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@availity/mui-pagination",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.9",
|
|
4
4
|
"description": "Availity MUI Pagination Component - part of the @availity/element design system",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -32,15 +32,15 @@
|
|
|
32
32
|
"publish:canary": "yarn npm publish --access public --tag canary"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@availity/mui-icon": "0.8.
|
|
36
|
-
"@mui/material": "^5.
|
|
35
|
+
"@availity/mui-icon": "0.8.2",
|
|
36
|
+
"@mui/material": "^5.15.15",
|
|
37
37
|
"react": "18.2.0",
|
|
38
38
|
"react-dom": "18.2.0",
|
|
39
|
-
"tsup": "^
|
|
40
|
-
"typescript": "^4.
|
|
39
|
+
"tsup": "^8.0.2",
|
|
40
|
+
"typescript": "^5.4.5"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"@availity/mui-icon": "0.8.
|
|
43
|
+
"@availity/mui-icon": "0.8.2",
|
|
44
44
|
"@mui/material": "^5.11.9",
|
|
45
45
|
"react": ">=16.3.0"
|
|
46
46
|
},
|
package/project.json
CHANGED
|
@@ -6,10 +6,9 @@
|
|
|
6
6
|
"tags": [],
|
|
7
7
|
"targets": {
|
|
8
8
|
"lint": {
|
|
9
|
-
"executor": "@
|
|
9
|
+
"executor": "@nx/eslint:lint",
|
|
10
10
|
"options": {
|
|
11
11
|
"eslintConfig": ".eslintrc.json",
|
|
12
|
-
"lintFilePatterns": ["packages/pagination/**/*.{js,ts}"],
|
|
13
12
|
"silent": false,
|
|
14
13
|
"fix": false,
|
|
15
14
|
"cache": true,
|
|
@@ -22,20 +21,20 @@
|
|
|
22
21
|
}
|
|
23
22
|
},
|
|
24
23
|
"test": {
|
|
25
|
-
"executor": "@
|
|
26
|
-
"outputs": ["coverage/pagination"],
|
|
24
|
+
"executor": "@nx/jest:jest",
|
|
25
|
+
"outputs": ["{workspaceRoot}/coverage/pagination"],
|
|
27
26
|
"options": {
|
|
28
|
-
"jestConfig": "packages/pagination/jest.config.js"
|
|
29
|
-
"passWithNoTests": true
|
|
27
|
+
"jestConfig": "packages/pagination/jest.config.js"
|
|
30
28
|
}
|
|
31
29
|
},
|
|
32
30
|
"version": {
|
|
33
31
|
"executor": "@jscutlery/semver:version",
|
|
34
32
|
"options": {
|
|
35
33
|
"preset": "conventional",
|
|
36
|
-
"commitMessageFormat": "chore(
|
|
37
|
-
"tagPrefix": "@availity
|
|
38
|
-
"trackDeps": true
|
|
34
|
+
"commitMessageFormat": "chore({projectName}): release version ${version} [skip ci]",
|
|
35
|
+
"tagPrefix": "@availity/{projectName}@",
|
|
36
|
+
"trackDeps": true,
|
|
37
|
+
"skipCommitTypes": ["docs"]
|
|
39
38
|
}
|
|
40
39
|
}
|
|
41
40
|
}
|
|
@@ -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'>;
|