@availity/mui-table 2.0.7 → 3.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 +46 -0
- package/dist/index.js +74 -151
- package/package.json +28 -29
- package/project.json +5 -6
- package/src/lib/Table.tsx +1 -3
- package/src/lib/TableBody.tsx +1 -3
- package/src/lib/TableCell.test.tsx +2 -2
- package/src/lib/TableCell.tsx +2 -2
- package/src/lib/TableContainer.tsx +1 -3
- package/src/lib/TableFooter.tsx +1 -3
- package/src/lib/TableHead.tsx +1 -3
- package/src/lib/TablePagination.tsx +2 -2
- package/src/lib/TableRow.tsx +1 -3
- package/dist/index.d.mts +0 -69
- package/dist/index.mjs +0 -169
- package/jest.config.js +0 -17
- package/tsconfig.spec.json +0 -10
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,52 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [3.0.0](https://github.com/Availity/element/compare/@availity/mui-table@2.0.8...@availity/mui-table@3.0.0) (2026-06-16)
|
|
6
|
+
|
|
7
|
+
### Dependency Updates
|
|
8
|
+
|
|
9
|
+
* `mui-button` updated to version `2.0.8`
|
|
10
|
+
* `mui-chip` updated to version `2.0.8`
|
|
11
|
+
* `mui-form-utils` updated to version `2.0.8`
|
|
12
|
+
* `mui-icon` updated to version `2.0.8`
|
|
13
|
+
* `mui-layout` updated to version `2.0.8`
|
|
14
|
+
* `mui-link` updated to version `2.0.8`
|
|
15
|
+
* `mui-menu` updated to version `2.0.8`
|
|
16
|
+
* `mui-paper` updated to version `2.0.8`
|
|
17
|
+
* `mui-textfield` updated to version `2.0.8`
|
|
18
|
+
* `mui-typography` updated to version `2.0.8`
|
|
19
|
+
* `mui-pagination` updated to version `2.0.8`
|
|
20
|
+
* `mui-utils` updated to version `2.0.8`
|
|
21
|
+
* `mui-transitions` updated to version `2.0.8`
|
|
22
|
+
|
|
23
|
+
### ⚠ BREAKING CHANGES
|
|
24
|
+
|
|
25
|
+
* CJS builds removed, packages are ESM-only.
|
|
26
|
+
|
|
27
|
+
- Convert all packages to ESM (type: module)
|
|
28
|
+
- Replace Jest with Vitest for all test targets
|
|
29
|
+
- Migrate ESLint to v9 flat config (eslint.config.js)
|
|
30
|
+
- Build output ESM-only (removed CJS dist/index.js require path)
|
|
31
|
+
- Upgrade @tanstack/react-query from v4 to v5
|
|
32
|
+
- Upgrade @availity/api-axios to v13
|
|
33
|
+
- Drop Node 20 support (engines: ^22.0.0 || ^24.0.0)
|
|
34
|
+
- Bump React to 19.2.7, MUI to 7.3.11, TypeScript to 5.9.3
|
|
35
|
+
- Simplify CI caching with built-in yarn cache action + Nx cache
|
|
36
|
+
- Modernize nx.json configuration
|
|
37
|
+
- Update husky hooks to use yarn directly
|
|
38
|
+
- Replace lint-staged nx affected with direct eslint
|
|
39
|
+
|
|
40
|
+
### Features
|
|
41
|
+
|
|
42
|
+
* migrate to ESM, Vitest, and ESLint 9 flat config ([cc22bb4](https://github.com/Availity/element/commit/cc22bb4a230bc1f3b190f187c4e61249d015b25b))
|
|
43
|
+
|
|
44
|
+
## [2.0.8](https://github.com/Availity/element/compare/@availity/mui-table@2.0.7...@availity/mui-table@2.0.8) (2026-06-03)
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
### Bug Fixes
|
|
48
|
+
|
|
49
|
+
* made the position for table cells placeholder be relative, GPS-498 ([47cd378](https://github.com/Availity/element/commit/47cd37870975434f2c372401f2167e205dbae2f4))
|
|
50
|
+
|
|
5
51
|
## [2.0.7](https://github.com/Availity/element/compare/@availity/mui-table@2.0.6...@availity/mui-table@2.0.7) (2026-05-27)
|
|
6
52
|
|
|
7
53
|
### Dependency Updates
|
package/dist/index.js
CHANGED
|
@@ -1,196 +1,119 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __defProps = Object.defineProperties;
|
|
5
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
7
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
8
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
9
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
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
|
-
};
|
|
37
|
-
var __export = (target, all) => {
|
|
38
|
-
for (var name in all)
|
|
39
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
40
|
-
};
|
|
41
|
-
var __copyProps = (to, from, except, desc) => {
|
|
42
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
43
|
-
for (let key of __getOwnPropNames(from))
|
|
44
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
45
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
46
|
-
}
|
|
47
|
-
return to;
|
|
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
|
-
));
|
|
57
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
58
|
-
|
|
59
|
-
// src/index.ts
|
|
60
|
-
var index_exports = {};
|
|
61
|
-
__export(index_exports, {
|
|
62
|
-
Table: () => Table,
|
|
63
|
-
TableBody: () => TableBody,
|
|
64
|
-
TableCell: () => TableCell,
|
|
65
|
-
TableContainer: () => TableContainer,
|
|
66
|
-
TableFooter: () => TableFooter,
|
|
67
|
-
TableHead: () => TableHead,
|
|
68
|
-
TablePagination: () => TablePagination,
|
|
69
|
-
TableRow: () => TableRow,
|
|
70
|
-
TableSortLabel: () => TableSortLabel
|
|
71
|
-
});
|
|
72
|
-
module.exports = __toCommonJS(index_exports);
|
|
73
|
-
|
|
74
1
|
// src/lib/Table.tsx
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
var Table = (
|
|
78
|
-
var _b = _a, { className, striped } = _b, props = __objRest(_b, ["className", "striped"]);
|
|
79
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Table.default, __spreadValues({ className: `${striped ? "striped " : ""}${className || ""}` }, props));
|
|
80
|
-
};
|
|
2
|
+
import { default as MuiTable } from "@mui/material/Table";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
var Table = ({ className, striped, ...props }) => /* @__PURE__ */ jsx(MuiTable, { className: `${striped ? "striped " : ""}${className || ""}`, ...props });
|
|
81
5
|
|
|
82
6
|
// src/lib/TableBody.tsx
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
var TableBody = (props) => {
|
|
86
|
-
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_TableBody.default, __spreadValues({}, props));
|
|
87
|
-
};
|
|
7
|
+
import { default as MuiTableBody } from "@mui/material/TableBody";
|
|
8
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
9
|
+
var TableBody = (props) => /* @__PURE__ */ jsx2(MuiTableBody, { ...props });
|
|
88
10
|
|
|
89
11
|
// src/lib/TableCell.tsx
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
12
|
+
import {
|
|
13
|
+
default as MuiTableCell
|
|
14
|
+
} from "@mui/material/TableCell";
|
|
15
|
+
import { visuallyHidden } from "@availity/mui-utils";
|
|
16
|
+
import { Fragment, jsx as jsx3, jsxs } from "react/jsx-runtime";
|
|
17
|
+
var TableCell = ({ disableEmptyPlaceholder = false, children, ...props }) => {
|
|
95
18
|
const isPlaceholderActive = !disableEmptyPlaceholder && !children;
|
|
96
|
-
const placeholder = /* @__PURE__ */
|
|
97
|
-
/* @__PURE__ */ (
|
|
98
|
-
/* @__PURE__ */ (
|
|
19
|
+
const placeholder = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
20
|
+
/* @__PURE__ */ jsx3("div", { "aria-hidden": true, children: "\u2014" }),
|
|
21
|
+
/* @__PURE__ */ jsx3("div", { style: { ...visuallyHidden, position: "relative" }, children: "No Data" })
|
|
99
22
|
] });
|
|
100
|
-
return /* @__PURE__ */ (
|
|
23
|
+
return /* @__PURE__ */ jsx3(MuiTableCell, { ...props, children: isPlaceholderActive ? placeholder : children });
|
|
101
24
|
};
|
|
102
25
|
|
|
103
26
|
// src/lib/TableContainer.tsx
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
};
|
|
27
|
+
import {
|
|
28
|
+
default as MuiTableContainer
|
|
29
|
+
} from "@mui/material/TableContainer";
|
|
30
|
+
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
31
|
+
var TableContainer = (props) => /* @__PURE__ */ jsx4(MuiTableContainer, { ...props });
|
|
109
32
|
|
|
110
33
|
// src/lib/TableFooter.tsx
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
var TableFooter = (props) => {
|
|
114
|
-
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_TableFooter.default, __spreadValues({}, props));
|
|
115
|
-
};
|
|
34
|
+
import { default as MuiTableFooter } from "@mui/material/TableFooter";
|
|
35
|
+
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
36
|
+
var TableFooter = (props) => /* @__PURE__ */ jsx5(MuiTableFooter, { ...props });
|
|
116
37
|
|
|
117
38
|
// src/lib/TableHead.tsx
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
var TableHead = (props) => {
|
|
121
|
-
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_TableHead.default, __spreadValues({}, props));
|
|
122
|
-
};
|
|
39
|
+
import { default as MuiTableHead } from "@mui/material/TableHead";
|
|
40
|
+
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
41
|
+
var TableHead = (props) => /* @__PURE__ */ jsx6(MuiTableHead, { ...props });
|
|
123
42
|
|
|
124
43
|
// src/lib/TablePagination.tsx
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
44
|
+
import { forwardRef, useState } from "react";
|
|
45
|
+
import {
|
|
46
|
+
default as MuiTablePagination
|
|
47
|
+
} from "@mui/material/TablePagination";
|
|
48
|
+
import { Pagination } from "@availity/mui-pagination";
|
|
49
|
+
import { SelectAccessibilityOverrides } from "@availity/mui-form-utils";
|
|
50
|
+
import { TriangleExpandIcon } from "@availity/mui-icon";
|
|
51
|
+
import { Fragment as Fragment2, jsx as jsx7, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
52
|
+
var IconComponent = (args) => /* @__PURE__ */ jsx7(TriangleExpandIcon, { fontSize: "xxsmall", sx: { marginRight: "4px" }, ...args });
|
|
53
|
+
var TablePagination = forwardRef((props, ref) => {
|
|
54
|
+
const { Actions, paginationProps, ...rest } = props;
|
|
55
|
+
const [openDetected, setOpenDetected] = useState(false);
|
|
135
56
|
const ActionsPagination = (props2) => {
|
|
136
|
-
const
|
|
137
|
-
return /* @__PURE__ */ (
|
|
138
|
-
typeof count === "number" && count / rowsPerPage > 1 ? /* @__PURE__ */ (
|
|
139
|
-
|
|
140
|
-
|
|
57
|
+
const { count, page, rowsPerPage, onPageChange, nextIconButtonProps, backIconButtonProps, slotProps, ...rest2 } = props2;
|
|
58
|
+
return /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
59
|
+
typeof count === "number" && count / rowsPerPage > 1 ? /* @__PURE__ */ jsx7(
|
|
60
|
+
Pagination,
|
|
61
|
+
{
|
|
62
|
+
...rest2,
|
|
63
|
+
...paginationProps,
|
|
141
64
|
count: Math.ceil(Math.abs(count / rowsPerPage)),
|
|
142
65
|
page: page + 1,
|
|
143
66
|
onChange: (event, newPage) => {
|
|
144
67
|
onPageChange(event, newPage - 1);
|
|
145
68
|
}
|
|
146
|
-
}
|
|
69
|
+
}
|
|
147
70
|
) : null,
|
|
148
71
|
Actions || null
|
|
149
72
|
] });
|
|
150
73
|
};
|
|
151
|
-
return /* @__PURE__ */ (
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
ActionsComponent: ActionsPagination
|
|
155
|
-
|
|
74
|
+
return /* @__PURE__ */ jsx7(
|
|
75
|
+
MuiTablePagination,
|
|
76
|
+
{
|
|
77
|
+
ActionsComponent: ActionsPagination,
|
|
78
|
+
...rest,
|
|
156
79
|
slotProps: {
|
|
157
|
-
select:
|
|
80
|
+
select: { IconComponent, ...SelectAccessibilityOverrides(openDetected, setOpenDetected) }
|
|
158
81
|
},
|
|
159
82
|
ref
|
|
160
|
-
}
|
|
83
|
+
}
|
|
161
84
|
);
|
|
162
85
|
});
|
|
163
86
|
|
|
164
87
|
// src/lib/TableRow.tsx
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
var TableRow = (props) => {
|
|
168
|
-
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_TableRow.default, __spreadValues({}, props));
|
|
169
|
-
};
|
|
88
|
+
import { default as MuiTableRow } from "@mui/material/TableRow";
|
|
89
|
+
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
90
|
+
var TableRow = (props) => /* @__PURE__ */ jsx8(MuiTableRow, { ...props });
|
|
170
91
|
|
|
171
92
|
// src/lib/TableSortLabel.tsx
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
93
|
+
import {
|
|
94
|
+
default as MuiTableSortLabel
|
|
95
|
+
} from "@mui/material/TableSortLabel";
|
|
96
|
+
import Box from "@mui/material/Box";
|
|
97
|
+
import { visuallyHidden as visuallyHidden2 } from "@availity/mui-utils";
|
|
98
|
+
import { SortDownIcon, SortIcon } from "@availity/mui-icon";
|
|
99
|
+
import { Fragment as Fragment3, jsx as jsx9, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
177
100
|
var TableSortLabel = (props) => {
|
|
178
|
-
const IconComponent2 = props.active ?
|
|
179
|
-
const SortedDescription = props.active ? /* @__PURE__ */ (
|
|
180
|
-
return /* @__PURE__ */ (
|
|
181
|
-
|
|
182
|
-
|
|
101
|
+
const IconComponent2 = props.active ? SortDownIcon : SortIcon;
|
|
102
|
+
const SortedDescription = props.active ? /* @__PURE__ */ jsx9(Box, { component: "span", sx: visuallyHidden2, children: props.direction === "desc" ? "sorted descending" : "sorted ascending" }) : null;
|
|
103
|
+
return /* @__PURE__ */ jsx9(
|
|
104
|
+
MuiTableSortLabel,
|
|
105
|
+
{
|
|
106
|
+
...props,
|
|
183
107
|
IconComponent: IconComponent2,
|
|
184
|
-
children: /* @__PURE__ */ (
|
|
108
|
+
children: /* @__PURE__ */ jsxs3(Fragment3, { children: [
|
|
185
109
|
props.children,
|
|
186
110
|
" ",
|
|
187
111
|
SortedDescription
|
|
188
112
|
] })
|
|
189
|
-
}
|
|
113
|
+
}
|
|
190
114
|
);
|
|
191
115
|
};
|
|
192
|
-
|
|
193
|
-
0 && (module.exports = {
|
|
116
|
+
export {
|
|
194
117
|
Table,
|
|
195
118
|
TableBody,
|
|
196
119
|
TableCell,
|
|
@@ -200,4 +123,4 @@ var TableSortLabel = (props) => {
|
|
|
200
123
|
TablePagination,
|
|
201
124
|
TableRow,
|
|
202
125
|
TableSortLabel
|
|
203
|
-
}
|
|
126
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@availity/mui-table",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "Availity MUI Table Component - part of the @availity/element design system",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -21,19 +21,17 @@
|
|
|
21
21
|
"author": "Availity Developers <AVOSS@availity.com>",
|
|
22
22
|
"browser": "./dist/index.js",
|
|
23
23
|
"main": "./dist/index.js",
|
|
24
|
-
"module": "./dist/index.mjs",
|
|
25
24
|
"types": "./dist/index.d.ts",
|
|
26
25
|
"exports": {
|
|
27
|
-
"./package.json": "./package.json",
|
|
28
26
|
".": {
|
|
29
27
|
"types": "./dist/index.d.ts",
|
|
30
|
-
"import": "./dist/index.
|
|
31
|
-
|
|
32
|
-
|
|
28
|
+
"import": "./dist/index.js"
|
|
29
|
+
},
|
|
30
|
+
"./package.json": "./package.json"
|
|
33
31
|
},
|
|
34
32
|
"scripts": {
|
|
35
|
-
"build": "tsup src/index.ts --format esm
|
|
36
|
-
"dev": "tsup src/index.ts --format esm
|
|
33
|
+
"build": "tsup src/index.ts --format esm --dts",
|
|
34
|
+
"dev": "tsup src/index.ts --format esm --watch --dts",
|
|
37
35
|
"clean": "rm -rf dist",
|
|
38
36
|
"clean:nm": "rm -rf node_modules",
|
|
39
37
|
"bundlesize": "bundlesize",
|
|
@@ -41,28 +39,28 @@
|
|
|
41
39
|
"publish:canary": "yarn npm publish --access public --tag canary"
|
|
42
40
|
},
|
|
43
41
|
"dependencies": {
|
|
44
|
-
"@availity/mui-form-utils": "
|
|
45
|
-
"@availity/mui-icon": "
|
|
46
|
-
"@availity/mui-pagination": "
|
|
47
|
-
"@availity/mui-utils": "
|
|
42
|
+
"@availity/mui-form-utils": "3.0.0",
|
|
43
|
+
"@availity/mui-icon": "3.0.0",
|
|
44
|
+
"@availity/mui-pagination": "3.0.0",
|
|
45
|
+
"@availity/mui-utils": "3.0.0"
|
|
48
46
|
},
|
|
49
47
|
"devDependencies": {
|
|
50
|
-
"@availity/mui-button": "
|
|
51
|
-
"@availity/mui-chip": "
|
|
52
|
-
"@availity/mui-form-utils": "
|
|
53
|
-
"@availity/mui-icon": "
|
|
54
|
-
"@availity/mui-layout": "^
|
|
55
|
-
"@availity/mui-link": "
|
|
56
|
-
"@availity/mui-menu": "
|
|
57
|
-
"@availity/mui-paper": "
|
|
58
|
-
"@availity/mui-textfield": "
|
|
59
|
-
"@availity/mui-typography": "
|
|
60
|
-
"@mui/material": "^7.3.
|
|
61
|
-
"react": "19.2.
|
|
62
|
-
"react-dom": "19.2.
|
|
63
|
-
"react-hook-form": "^7.
|
|
64
|
-
"tsup": "^8.
|
|
65
|
-
"typescript": "^5.
|
|
48
|
+
"@availity/mui-button": "3.0.0",
|
|
49
|
+
"@availity/mui-chip": "3.0.0",
|
|
50
|
+
"@availity/mui-form-utils": "3.0.0",
|
|
51
|
+
"@availity/mui-icon": "3.0.0",
|
|
52
|
+
"@availity/mui-layout": "^3.0.0",
|
|
53
|
+
"@availity/mui-link": "3.0.0",
|
|
54
|
+
"@availity/mui-menu": "3.0.0",
|
|
55
|
+
"@availity/mui-paper": "3.0.0",
|
|
56
|
+
"@availity/mui-textfield": "3.0.0",
|
|
57
|
+
"@availity/mui-typography": "3.0.0",
|
|
58
|
+
"@mui/material": "^7.3.11",
|
|
59
|
+
"react": "19.2.7",
|
|
60
|
+
"react-dom": "19.2.7",
|
|
61
|
+
"react-hook-form": "^7.79.0",
|
|
62
|
+
"tsup": "^8.5.1",
|
|
63
|
+
"typescript": "^5.9.3"
|
|
66
64
|
},
|
|
67
65
|
"peerDependencies": {
|
|
68
66
|
"@mui/material": "^7.0.0",
|
|
@@ -71,5 +69,6 @@
|
|
|
71
69
|
"publishConfig": {
|
|
72
70
|
"access": "public"
|
|
73
71
|
},
|
|
74
|
-
"sideEffects": false
|
|
72
|
+
"sideEffects": false,
|
|
73
|
+
"type": "module"
|
|
75
74
|
}
|
package/project.json
CHANGED
|
@@ -9,23 +9,20 @@
|
|
|
9
9
|
"lint": {
|
|
10
10
|
"executor": "@nx/eslint:lint",
|
|
11
11
|
"options": {
|
|
12
|
-
"eslintConfig": ".eslintrc.json",
|
|
13
12
|
"silent": false,
|
|
14
13
|
"fix": false,
|
|
15
14
|
"cache": true,
|
|
16
15
|
"cacheLocation": "./node_modules/.cache/table/.eslintcache",
|
|
17
16
|
"maxWarnings": -1,
|
|
18
17
|
"quiet": false,
|
|
19
|
-
"noEslintrc": false,
|
|
20
18
|
"hasTypeAwareRules": true,
|
|
21
19
|
"cacheStrategy": "metadata"
|
|
22
20
|
}
|
|
23
21
|
},
|
|
24
22
|
"test": {
|
|
25
|
-
"executor": "
|
|
26
|
-
"outputs": ["{workspaceRoot}/coverage/table"],
|
|
23
|
+
"executor": "nx:run-commands",
|
|
27
24
|
"options": {
|
|
28
|
-
"
|
|
25
|
+
"command": "vitest run packages/table"
|
|
29
26
|
}
|
|
30
27
|
},
|
|
31
28
|
"version": {
|
|
@@ -35,7 +32,9 @@
|
|
|
35
32
|
"commitMessageFormat": "chore({projectName}): release version ${version} [skip ci]",
|
|
36
33
|
"tagPrefix": "@availity/{projectName}@",
|
|
37
34
|
"trackDeps": true,
|
|
38
|
-
"skipCommitTypes": [
|
|
35
|
+
"skipCommitTypes": [
|
|
36
|
+
"docs"
|
|
37
|
+
]
|
|
39
38
|
}
|
|
40
39
|
}
|
|
41
40
|
}
|
package/src/lib/Table.tsx
CHANGED
|
@@ -8,6 +8,4 @@ export type TableProps = {
|
|
|
8
8
|
striped?: boolean;
|
|
9
9
|
} & MuiTableProps;
|
|
10
10
|
|
|
11
|
-
export const Table = ({ className, striped, ...props }: TableProps): React.JSX.Element => {
|
|
12
|
-
return <MuiTable className={`${striped ? 'striped ' : ''}${className || ''}`} {...props} />;
|
|
13
|
-
};
|
|
11
|
+
export const Table = ({ className, striped, ...props }: TableProps): React.JSX.Element => <MuiTable className={`${striped ? 'striped ' : ''}${className || ''}`} {...props} />;
|
package/src/lib/TableBody.tsx
CHANGED
|
@@ -6,6 +6,4 @@ export type TableBodyProps = {
|
|
|
6
6
|
component?: ElementType<TableCellBaseProps>;
|
|
7
7
|
} & MuiTableBodyProps;
|
|
8
8
|
|
|
9
|
-
export const TableBody = (props: TableBodyProps): React.JSX.Element => {
|
|
10
|
-
return <MuiTableBody {...props} />;
|
|
11
|
-
};
|
|
9
|
+
export const TableBody = (props: TableBodyProps): React.JSX.Element => <MuiTableBody {...props} />;
|
|
@@ -7,12 +7,12 @@ describe('TableCell', () => {
|
|
|
7
7
|
expect(getByText('Test')).toBeTruthy();
|
|
8
8
|
});
|
|
9
9
|
test('should add placeholder to empty cell', () => {
|
|
10
|
-
const { getByText } = render(<TableCell
|
|
10
|
+
const { getByText } = render(<TableCell />);
|
|
11
11
|
expect(getByText('—')).toBeTruthy();
|
|
12
12
|
expect(getByText('No Data')).toBeTruthy();
|
|
13
13
|
});
|
|
14
14
|
test('shouldnt add placeholder to empty cell when disableEmptyPlaceholder is true', () => {
|
|
15
|
-
const { queryByText } = render(<TableCell disableEmptyPlaceholder
|
|
15
|
+
const { queryByText } = render(<TableCell disableEmptyPlaceholder />);
|
|
16
16
|
expect(queryByText('—')).toBeNull();
|
|
17
17
|
expect(queryByText('No Data')).toBeNull();
|
|
18
18
|
});
|
package/src/lib/TableCell.tsx
CHANGED
|
@@ -18,9 +18,9 @@ export type TableCellProps = {
|
|
|
18
18
|
disableEmptyPlaceholder?: boolean;
|
|
19
19
|
} & MuiTableCellProps;
|
|
20
20
|
|
|
21
|
-
export const TableCell = ({disableEmptyPlaceholder = false, children, ...props}: TableCellProps): React.JSX.Element => {
|
|
21
|
+
export const TableCell = ({ disableEmptyPlaceholder = false, children, ...props }: TableCellProps): React.JSX.Element => {
|
|
22
22
|
const isPlaceholderActive = !disableEmptyPlaceholder && !children;
|
|
23
|
-
const placeholder = <><div aria-hidden>—</div><div style={visuallyHidden}>No Data</div></>;
|
|
23
|
+
const placeholder = <><div aria-hidden>—</div><div style={{ ...visuallyHidden, position: 'relative' }}>No Data</div></>;
|
|
24
24
|
|
|
25
25
|
return <MuiTableCell {...props}>{isPlaceholderActive ? placeholder : children}</MuiTableCell>;
|
|
26
26
|
};
|
|
@@ -9,6 +9,4 @@ export type TableContainerProps = {
|
|
|
9
9
|
component?: ElementType<TableCellBaseProps>;
|
|
10
10
|
} & MuiTableContainerProps;
|
|
11
11
|
|
|
12
|
-
export const TableContainer = (props: TableContainerProps): React.JSX.Element => {
|
|
13
|
-
return <MuiTableContainer {...props} />;
|
|
14
|
-
};
|
|
12
|
+
export const TableContainer = (props: TableContainerProps): React.JSX.Element => <MuiTableContainer {...props} />;
|
package/src/lib/TableFooter.tsx
CHANGED
|
@@ -6,6 +6,4 @@ export type TableFooterProps = {
|
|
|
6
6
|
component?: ElementType<TableCellBaseProps>;
|
|
7
7
|
} & MuiTableFooterProps;
|
|
8
8
|
|
|
9
|
-
export const TableFooter = (props: TableFooterProps): React.JSX.Element => {
|
|
10
|
-
return <MuiTableFooter {...props} />;
|
|
11
|
-
};
|
|
9
|
+
export const TableFooter = (props: TableFooterProps): React.JSX.Element => <MuiTableFooter {...props} />;
|
package/src/lib/TableHead.tsx
CHANGED
|
@@ -6,6 +6,4 @@ export type TableHeadProps = {
|
|
|
6
6
|
component?: ElementType<TableCellBaseProps>;
|
|
7
7
|
} & MuiTableHeadProps;
|
|
8
8
|
|
|
9
|
-
export const TableHead = (props: TableHeadProps): React.JSX.Element => {
|
|
10
|
-
return <MuiTableHead {...props} />;
|
|
11
|
-
};
|
|
9
|
+
export const TableHead = (props: TableHeadProps): React.JSX.Element => <MuiTableHead {...props} />;
|
|
@@ -47,7 +47,7 @@ export const TablePagination = forwardRef<unknown, TablePaginationProps>((props,
|
|
|
47
47
|
|
|
48
48
|
const ActionsPagination = (props: TablePaginationActionsProps): React.JSX.Element => {
|
|
49
49
|
// Pull secondary props off so they are not passed to Pagination component
|
|
50
|
-
|
|
50
|
+
|
|
51
51
|
const { count, page, rowsPerPage, onPageChange, nextIconButtonProps, backIconButtonProps, slotProps, ...rest } =
|
|
52
52
|
props;
|
|
53
53
|
|
|
@@ -74,7 +74,7 @@ export const TablePagination = forwardRef<unknown, TablePaginationProps>((props,
|
|
|
74
74
|
ActionsComponent={ActionsPagination}
|
|
75
75
|
{...rest}
|
|
76
76
|
slotProps={{
|
|
77
|
-
select: { IconComponent
|
|
77
|
+
select: { IconComponent, ...SelectAccessibilityOverrides(openDetected, setOpenDetected) },
|
|
78
78
|
}}
|
|
79
79
|
ref={ref}
|
|
80
80
|
/>
|
package/src/lib/TableRow.tsx
CHANGED
|
@@ -6,6 +6,4 @@ export type TableRowProps = {
|
|
|
6
6
|
component?: ElementType<TableCellBaseProps>;
|
|
7
7
|
} & MuiTableRowProps;
|
|
8
8
|
|
|
9
|
-
export const TableRow = (props: TableRowProps): React.JSX.Element => {
|
|
10
|
-
return <MuiTableRow {...props} />;
|
|
11
|
-
};
|
|
9
|
+
export const TableRow = (props: TableRowProps): React.JSX.Element => <MuiTableRow {...props} />;
|
package/dist/index.d.mts
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { TableProps as TableProps$1 } from '@mui/material/Table';
|
|
2
|
-
import { TableCellBaseProps, TableCellProps as TableCellProps$1 } from '@mui/material/TableCell';
|
|
3
|
-
import * as react from 'react';
|
|
4
|
-
import { ElementType } from 'react';
|
|
5
|
-
import { TableBodyProps as TableBodyProps$1 } from '@mui/material/TableBody';
|
|
6
|
-
import { TableContainerProps as TableContainerProps$1 } from '@mui/material/TableContainer';
|
|
7
|
-
import { TableFooterProps as TableFooterProps$1 } from '@mui/material/TableFooter';
|
|
8
|
-
import { TableHeadProps as TableHeadProps$1 } from '@mui/material/TableHead';
|
|
9
|
-
import { TablePaginationProps as TablePaginationProps$1 } from '@mui/material/TablePagination';
|
|
10
|
-
import { PaginationProps } from '@availity/mui-pagination';
|
|
11
|
-
import { TableRowProps as TableRowProps$1 } from '@mui/material/TableRow';
|
|
12
|
-
import { TableSortLabelProps as TableSortLabelProps$1 } from '@mui/material/TableSortLabel';
|
|
13
|
-
|
|
14
|
-
type TableProps = {
|
|
15
|
-
component?: ElementType<TableCellBaseProps>;
|
|
16
|
-
/** Applies striped style to rows. _Only available for legacy bootstrap theme during migration, is not part of design system._ */
|
|
17
|
-
striped?: boolean;
|
|
18
|
-
} & TableProps$1;
|
|
19
|
-
declare const Table: ({ className, striped, ...props }: TableProps) => React.JSX.Element;
|
|
20
|
-
|
|
21
|
-
type TableBodyProps = {
|
|
22
|
-
component?: ElementType<TableCellBaseProps>;
|
|
23
|
-
} & TableBodyProps$1;
|
|
24
|
-
declare const TableBody: (props: TableBodyProps) => React.JSX.Element;
|
|
25
|
-
|
|
26
|
-
declare module '@mui/material/TableCell' {
|
|
27
|
-
interface TableCellPropsVariantOverrides {
|
|
28
|
-
header: true;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
type TableCellProps = {
|
|
32
|
-
component?: ElementType<TableCellBaseProps>;
|
|
33
|
-
/** If `true` the placeholder for empty cells and accessible "No Data" text is disabled. */
|
|
34
|
-
disableEmptyPlaceholder?: boolean;
|
|
35
|
-
} & TableCellProps$1;
|
|
36
|
-
declare const TableCell: ({ disableEmptyPlaceholder, children, ...props }: TableCellProps) => React.JSX.Element;
|
|
37
|
-
|
|
38
|
-
type TableContainerProps = {
|
|
39
|
-
component?: ElementType<TableCellBaseProps>;
|
|
40
|
-
} & TableContainerProps$1;
|
|
41
|
-
declare const TableContainer: (props: TableContainerProps) => React.JSX.Element;
|
|
42
|
-
|
|
43
|
-
type TableFooterProps = {
|
|
44
|
-
component?: ElementType<TableCellBaseProps>;
|
|
45
|
-
} & TableFooterProps$1;
|
|
46
|
-
declare const TableFooter: (props: TableFooterProps) => React.JSX.Element;
|
|
47
|
-
|
|
48
|
-
type TableHeadProps = {
|
|
49
|
-
component?: ElementType<TableCellBaseProps>;
|
|
50
|
-
} & TableHeadProps$1;
|
|
51
|
-
declare const TableHead: (props: TableHeadProps) => React.JSX.Element;
|
|
52
|
-
|
|
53
|
-
type TablePaginationProps = {
|
|
54
|
-
Actions?: React.ReactNode;
|
|
55
|
-
component?: ElementType<TableCellBaseProps>;
|
|
56
|
-
/** Props applied to the `Pagination` actions element */
|
|
57
|
-
paginationProps?: PaginationProps;
|
|
58
|
-
} & Omit<TablePaginationProps$1, 'ActionsComponent' | 'backIconButtonProps' | 'nextIconButtonProps' | 'getItemArialabel' | 'labelDisplayedRows' | 'labelRowsPerPage' | 'SelectProps' | 'showFirstButton' | 'showLastButton' | 'slotProps' | 'slots'>;
|
|
59
|
-
declare const TablePagination: react.ForwardRefExoticComponent<Omit<TablePaginationProps, "ref"> & react.RefAttributes<unknown>>;
|
|
60
|
-
|
|
61
|
-
type TableRowProps = {
|
|
62
|
-
component?: ElementType<TableCellBaseProps>;
|
|
63
|
-
} & TableRowProps$1;
|
|
64
|
-
declare const TableRow: (props: TableRowProps) => React.JSX.Element;
|
|
65
|
-
|
|
66
|
-
type TableSortLabelProps = Omit<TableSortLabelProps$1, 'centerRipple' | 'disableRipple' | 'disableTouchRipple' | 'focusRipple' | 'focusVisibleClassName' | 'hideSortIcon' | 'IconComponent' | 'TouchRippleProps' | 'touchRippleRef'>;
|
|
67
|
-
declare const TableSortLabel: (props: TableSortLabelProps) => React.JSX.Element;
|
|
68
|
-
|
|
69
|
-
export { Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableContainer, type TableContainerProps, TableFooter, type TableFooterProps, TableHead, type TableHeadProps, TablePagination, type TablePaginationProps, type TableProps, TableRow, type TableRowProps, TableSortLabel, type TableSortLabelProps };
|
package/dist/index.mjs
DELETED
|
@@ -1,169 +0,0 @@
|
|
|
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
|
-
|
|
33
|
-
// src/lib/Table.tsx
|
|
34
|
-
import { default as MuiTable } from "@mui/material/Table";
|
|
35
|
-
import { jsx } from "react/jsx-runtime";
|
|
36
|
-
var Table = (_a) => {
|
|
37
|
-
var _b = _a, { className, striped } = _b, props = __objRest(_b, ["className", "striped"]);
|
|
38
|
-
return /* @__PURE__ */ jsx(MuiTable, __spreadValues({ className: `${striped ? "striped " : ""}${className || ""}` }, props));
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
// src/lib/TableBody.tsx
|
|
42
|
-
import { default as MuiTableBody } from "@mui/material/TableBody";
|
|
43
|
-
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
44
|
-
var TableBody = (props) => {
|
|
45
|
-
return /* @__PURE__ */ jsx2(MuiTableBody, __spreadValues({}, props));
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
// src/lib/TableCell.tsx
|
|
49
|
-
import {
|
|
50
|
-
default as MuiTableCell
|
|
51
|
-
} from "@mui/material/TableCell";
|
|
52
|
-
import { visuallyHidden } from "@availity/mui-utils";
|
|
53
|
-
import { Fragment, jsx as jsx3, jsxs } from "react/jsx-runtime";
|
|
54
|
-
var TableCell = (_a) => {
|
|
55
|
-
var _b = _a, { disableEmptyPlaceholder = false, children } = _b, props = __objRest(_b, ["disableEmptyPlaceholder", "children"]);
|
|
56
|
-
const isPlaceholderActive = !disableEmptyPlaceholder && !children;
|
|
57
|
-
const placeholder = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
58
|
-
/* @__PURE__ */ jsx3("div", { "aria-hidden": true, children: "\u2014" }),
|
|
59
|
-
/* @__PURE__ */ jsx3("div", { style: visuallyHidden, children: "No Data" })
|
|
60
|
-
] });
|
|
61
|
-
return /* @__PURE__ */ jsx3(MuiTableCell, __spreadProps(__spreadValues({}, props), { children: isPlaceholderActive ? placeholder : children }));
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
// src/lib/TableContainer.tsx
|
|
65
|
-
import {
|
|
66
|
-
default as MuiTableContainer
|
|
67
|
-
} from "@mui/material/TableContainer";
|
|
68
|
-
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
69
|
-
var TableContainer = (props) => {
|
|
70
|
-
return /* @__PURE__ */ jsx4(MuiTableContainer, __spreadValues({}, props));
|
|
71
|
-
};
|
|
72
|
-
|
|
73
|
-
// src/lib/TableFooter.tsx
|
|
74
|
-
import { default as MuiTableFooter } from "@mui/material/TableFooter";
|
|
75
|
-
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
76
|
-
var TableFooter = (props) => {
|
|
77
|
-
return /* @__PURE__ */ jsx5(MuiTableFooter, __spreadValues({}, props));
|
|
78
|
-
};
|
|
79
|
-
|
|
80
|
-
// src/lib/TableHead.tsx
|
|
81
|
-
import { default as MuiTableHead } from "@mui/material/TableHead";
|
|
82
|
-
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
83
|
-
var TableHead = (props) => {
|
|
84
|
-
return /* @__PURE__ */ jsx6(MuiTableHead, __spreadValues({}, props));
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
// src/lib/TablePagination.tsx
|
|
88
|
-
import { forwardRef, useState } from "react";
|
|
89
|
-
import {
|
|
90
|
-
default as MuiTablePagination
|
|
91
|
-
} from "@mui/material/TablePagination";
|
|
92
|
-
import { Pagination } from "@availity/mui-pagination";
|
|
93
|
-
import { SelectAccessibilityOverrides } from "@availity/mui-form-utils";
|
|
94
|
-
import { TriangleExpandIcon } from "@availity/mui-icon";
|
|
95
|
-
import { Fragment as Fragment2, jsx as jsx7, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
96
|
-
var IconComponent = (args) => /* @__PURE__ */ jsx7(TriangleExpandIcon, __spreadValues({ fontSize: "xxsmall", sx: { marginRight: "4px" } }, args));
|
|
97
|
-
var TablePagination = forwardRef((props, ref) => {
|
|
98
|
-
const _a = props, { Actions, paginationProps } = _a, rest = __objRest(_a, ["Actions", "paginationProps"]);
|
|
99
|
-
const [openDetected, setOpenDetected] = useState(false);
|
|
100
|
-
const ActionsPagination = (props2) => {
|
|
101
|
-
const _a2 = props2, { count, page, rowsPerPage, onPageChange, nextIconButtonProps, backIconButtonProps, slotProps } = _a2, rest2 = __objRest(_a2, ["count", "page", "rowsPerPage", "onPageChange", "nextIconButtonProps", "backIconButtonProps", "slotProps"]);
|
|
102
|
-
return /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
103
|
-
typeof count === "number" && count / rowsPerPage > 1 ? /* @__PURE__ */ jsx7(
|
|
104
|
-
Pagination,
|
|
105
|
-
__spreadProps(__spreadValues(__spreadValues({}, rest2), paginationProps), {
|
|
106
|
-
count: Math.ceil(Math.abs(count / rowsPerPage)),
|
|
107
|
-
page: page + 1,
|
|
108
|
-
onChange: (event, newPage) => {
|
|
109
|
-
onPageChange(event, newPage - 1);
|
|
110
|
-
}
|
|
111
|
-
})
|
|
112
|
-
) : null,
|
|
113
|
-
Actions || null
|
|
114
|
-
] });
|
|
115
|
-
};
|
|
116
|
-
return /* @__PURE__ */ jsx7(
|
|
117
|
-
MuiTablePagination,
|
|
118
|
-
__spreadProps(__spreadValues({
|
|
119
|
-
ActionsComponent: ActionsPagination
|
|
120
|
-
}, rest), {
|
|
121
|
-
slotProps: {
|
|
122
|
-
select: __spreadValues({ IconComponent }, SelectAccessibilityOverrides(openDetected, setOpenDetected))
|
|
123
|
-
},
|
|
124
|
-
ref
|
|
125
|
-
})
|
|
126
|
-
);
|
|
127
|
-
});
|
|
128
|
-
|
|
129
|
-
// src/lib/TableRow.tsx
|
|
130
|
-
import { default as MuiTableRow } from "@mui/material/TableRow";
|
|
131
|
-
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
132
|
-
var TableRow = (props) => {
|
|
133
|
-
return /* @__PURE__ */ jsx8(MuiTableRow, __spreadValues({}, props));
|
|
134
|
-
};
|
|
135
|
-
|
|
136
|
-
// src/lib/TableSortLabel.tsx
|
|
137
|
-
import {
|
|
138
|
-
default as MuiTableSortLabel
|
|
139
|
-
} from "@mui/material/TableSortLabel";
|
|
140
|
-
import Box from "@mui/material/Box";
|
|
141
|
-
import { visuallyHidden as visuallyHidden2 } from "@availity/mui-utils";
|
|
142
|
-
import { SortDownIcon, SortIcon } from "@availity/mui-icon";
|
|
143
|
-
import { Fragment as Fragment3, jsx as jsx9, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
144
|
-
var TableSortLabel = (props) => {
|
|
145
|
-
const IconComponent2 = props.active ? SortDownIcon : SortIcon;
|
|
146
|
-
const SortedDescription = props.active ? /* @__PURE__ */ jsx9(Box, { component: "span", sx: visuallyHidden2, children: props.direction === "desc" ? "sorted descending" : "sorted ascending" }) : null;
|
|
147
|
-
return /* @__PURE__ */ jsx9(
|
|
148
|
-
MuiTableSortLabel,
|
|
149
|
-
__spreadProps(__spreadValues({}, props), {
|
|
150
|
-
IconComponent: IconComponent2,
|
|
151
|
-
children: /* @__PURE__ */ jsxs3(Fragment3, { children: [
|
|
152
|
-
props.children,
|
|
153
|
-
" ",
|
|
154
|
-
SortedDescription
|
|
155
|
-
] })
|
|
156
|
-
})
|
|
157
|
-
);
|
|
158
|
-
};
|
|
159
|
-
export {
|
|
160
|
-
Table,
|
|
161
|
-
TableBody,
|
|
162
|
-
TableCell,
|
|
163
|
-
TableContainer,
|
|
164
|
-
TableFooter,
|
|
165
|
-
TableHead,
|
|
166
|
-
TablePagination,
|
|
167
|
-
TableRow,
|
|
168
|
-
TableSortLabel
|
|
169
|
-
};
|
package/jest.config.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
const global = require('../../jest.config.global');
|
|
2
|
-
|
|
3
|
-
module.exports = {
|
|
4
|
-
...global,
|
|
5
|
-
displayName: 'table',
|
|
6
|
-
coverageDirectory: '../../coverage/table',
|
|
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 },
|
|
17
|
-
};
|
package/tsconfig.spec.json
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "./tsconfig.json",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"outDir": "../../dist/out-tsc",
|
|
5
|
-
"module": "commonjs",
|
|
6
|
-
"types": ["jest", "node", "@testing-library/jest-dom"],
|
|
7
|
-
"allowJs": true
|
|
8
|
-
},
|
|
9
|
-
"include": ["jest.config.ts", "**/*.test.js", "**/*.test.ts", "**/*.test.tsx", "**/*.d.ts"]
|
|
10
|
-
}
|