@availity/mui-table 1.0.21 → 2.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 CHANGED
@@ -2,6 +2,34 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [2.0.0](https://github.com/Availity/element/compare/@availity/mui-table@1.0.21...@availity/mui-table@2.0.0) (2025-11-17)
6
+
7
+ ### Dependency Updates
8
+
9
+ * `mui-button` updated to version `1.0.21`
10
+ * `mui-chip` updated to version `1.0.21`
11
+ * `mui-form-utils` updated to version `1.0.21`
12
+ * `mui-icon` updated to version `1.0.21`
13
+ * `mui-layout` updated to version `1.0.21`
14
+ * `mui-link` updated to version `1.0.21`
15
+ * `mui-menu` updated to version `1.0.21`
16
+ * `mui-paper` updated to version `1.0.21`
17
+ * `mui-textfield` updated to version `1.0.21`
18
+ * `mui-typography` updated to version `1.0.21`
19
+ * `mui-pagination` updated to version `1.0.21`
20
+ * `mui-utils` updated to version `1.0.21`
21
+ * `mui-transitions` updated to version `1.0.21`
22
+
23
+ ### ⚠ BREAKING CHANGES
24
+
25
+ * @mui/material upgraded to v7
26
+ * @mui/x-* upgraded to v8
27
+ * react upgraded to v19
28
+
29
+ ### Features
30
+
31
+ * upgrade material and react dependencies ([51602a4](https://github.com/Availity/element/commit/51602a48c5304db6f61e2c7e772c9a3a4aa3f65c))
32
+
5
33
  ## [1.0.21](https://github.com/Availity/element/compare/@availity/mui-table@1.0.20...@availity/mui-table@1.0.21) (2025-10-30)
6
34
 
7
35
  ### Dependency Updates
package/dist/index.d.mts CHANGED
@@ -16,12 +16,12 @@ type TableProps = {
16
16
  /** Applies striped style to rows. _Only available for legacy bootstrap theme during migration, is not part of design system._ */
17
17
  striped?: boolean;
18
18
  } & TableProps$1;
19
- declare const Table: ({ className, striped, ...props }: TableProps) => JSX.Element;
19
+ declare const Table: ({ className, striped, ...props }: TableProps) => React.JSX.Element;
20
20
 
21
21
  type TableBodyProps = {
22
22
  component?: ElementType<TableCellBaseProps>;
23
23
  } & TableBodyProps$1;
24
- declare const TableBody: (props: TableBodyProps) => JSX.Element;
24
+ declare const TableBody: (props: TableBodyProps) => React.JSX.Element;
25
25
 
26
26
  declare module '@mui/material/TableCell' {
27
27
  interface TableCellPropsVariantOverrides {
@@ -33,22 +33,22 @@ type TableCellProps = {
33
33
  /** If `true` the placeholder for empty cells and accessible "No Data" text is disabled. */
34
34
  disableEmptyPlaceholder?: boolean;
35
35
  } & TableCellProps$1;
36
- declare const TableCell: ({ disableEmptyPlaceholder, children, ...props }: TableCellProps) => JSX.Element;
36
+ declare const TableCell: ({ disableEmptyPlaceholder, children, ...props }: TableCellProps) => React.JSX.Element;
37
37
 
38
38
  type TableContainerProps = {
39
39
  component?: ElementType<TableCellBaseProps>;
40
40
  } & TableContainerProps$1;
41
- declare const TableContainer: (props: TableContainerProps) => JSX.Element;
41
+ declare const TableContainer: (props: TableContainerProps) => React.JSX.Element;
42
42
 
43
43
  type TableFooterProps = {
44
44
  component?: ElementType<TableCellBaseProps>;
45
45
  } & TableFooterProps$1;
46
- declare const TableFooter: (props: TableFooterProps) => JSX.Element;
46
+ declare const TableFooter: (props: TableFooterProps) => React.JSX.Element;
47
47
 
48
48
  type TableHeadProps = {
49
49
  component?: ElementType<TableCellBaseProps>;
50
50
  } & TableHeadProps$1;
51
- declare const TableHead: (props: TableHeadProps) => JSX.Element;
51
+ declare const TableHead: (props: TableHeadProps) => React.JSX.Element;
52
52
 
53
53
  type TablePaginationProps = {
54
54
  Actions?: React.ReactNode;
@@ -61,9 +61,9 @@ declare const TablePagination: react.ForwardRefExoticComponent<Omit<TablePaginat
61
61
  type TableRowProps = {
62
62
  component?: ElementType<TableCellBaseProps>;
63
63
  } & TableRowProps$1;
64
- declare const TableRow: (props: TableRowProps) => JSX.Element;
64
+ declare const TableRow: (props: TableRowProps) => React.JSX.Element;
65
65
 
66
66
  type TableSortLabelProps = Omit<TableSortLabelProps$1, 'centerRipple' | 'disableRipple' | 'disableTouchRipple' | 'focusRipple' | 'focusVisibleClassName' | 'hideSortIcon' | 'IconComponent' | 'TouchRippleProps' | 'touchRippleRef'>;
67
- declare const TableSortLabel: (props: TableSortLabelProps) => JSX.Element;
67
+ declare const TableSortLabel: (props: TableSortLabelProps) => React.JSX.Element;
68
68
 
69
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.d.ts CHANGED
@@ -16,12 +16,12 @@ type TableProps = {
16
16
  /** Applies striped style to rows. _Only available for legacy bootstrap theme during migration, is not part of design system._ */
17
17
  striped?: boolean;
18
18
  } & TableProps$1;
19
- declare const Table: ({ className, striped, ...props }: TableProps) => JSX.Element;
19
+ declare const Table: ({ className, striped, ...props }: TableProps) => React.JSX.Element;
20
20
 
21
21
  type TableBodyProps = {
22
22
  component?: ElementType<TableCellBaseProps>;
23
23
  } & TableBodyProps$1;
24
- declare const TableBody: (props: TableBodyProps) => JSX.Element;
24
+ declare const TableBody: (props: TableBodyProps) => React.JSX.Element;
25
25
 
26
26
  declare module '@mui/material/TableCell' {
27
27
  interface TableCellPropsVariantOverrides {
@@ -33,22 +33,22 @@ type TableCellProps = {
33
33
  /** If `true` the placeholder for empty cells and accessible "No Data" text is disabled. */
34
34
  disableEmptyPlaceholder?: boolean;
35
35
  } & TableCellProps$1;
36
- declare const TableCell: ({ disableEmptyPlaceholder, children, ...props }: TableCellProps) => JSX.Element;
36
+ declare const TableCell: ({ disableEmptyPlaceholder, children, ...props }: TableCellProps) => React.JSX.Element;
37
37
 
38
38
  type TableContainerProps = {
39
39
  component?: ElementType<TableCellBaseProps>;
40
40
  } & TableContainerProps$1;
41
- declare const TableContainer: (props: TableContainerProps) => JSX.Element;
41
+ declare const TableContainer: (props: TableContainerProps) => React.JSX.Element;
42
42
 
43
43
  type TableFooterProps = {
44
44
  component?: ElementType<TableCellBaseProps>;
45
45
  } & TableFooterProps$1;
46
- declare const TableFooter: (props: TableFooterProps) => JSX.Element;
46
+ declare const TableFooter: (props: TableFooterProps) => React.JSX.Element;
47
47
 
48
48
  type TableHeadProps = {
49
49
  component?: ElementType<TableCellBaseProps>;
50
50
  } & TableHeadProps$1;
51
- declare const TableHead: (props: TableHeadProps) => JSX.Element;
51
+ declare const TableHead: (props: TableHeadProps) => React.JSX.Element;
52
52
 
53
53
  type TablePaginationProps = {
54
54
  Actions?: React.ReactNode;
@@ -61,9 +61,9 @@ declare const TablePagination: react.ForwardRefExoticComponent<Omit<TablePaginat
61
61
  type TableRowProps = {
62
62
  component?: ElementType<TableCellBaseProps>;
63
63
  } & TableRowProps$1;
64
- declare const TableRow: (props: TableRowProps) => JSX.Element;
64
+ declare const TableRow: (props: TableRowProps) => React.JSX.Element;
65
65
 
66
66
  type TableSortLabelProps = Omit<TableSortLabelProps$1, 'centerRipple' | 'disableRipple' | 'disableTouchRipple' | 'focusRipple' | 'focusVisibleClassName' | 'hideSortIcon' | 'IconComponent' | 'TouchRippleProps' | 'touchRippleRef'>;
67
- declare const TableSortLabel: (props: TableSortLabelProps) => JSX.Element;
67
+ declare const TableSortLabel: (props: TableSortLabelProps) => React.JSX.Element;
68
68
 
69
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@availity/mui-table",
3
- "version": "1.0.21",
3
+ "version": "2.0.0",
4
4
  "description": "Availity MUI Table Component - part of the @availity/element design system",
5
5
  "keywords": [
6
6
  "react",
@@ -41,32 +41,32 @@
41
41
  "publish:canary": "yarn npm publish --access public --tag canary"
42
42
  },
43
43
  "dependencies": {
44
- "@availity/mui-form-utils": "1.3.3",
45
- "@availity/mui-icon": "1.1.1",
46
- "@availity/mui-pagination": "1.0.12",
47
- "@availity/mui-utils": "1.0.3"
44
+ "@availity/mui-form-utils": "2.0.0",
45
+ "@availity/mui-icon": "2.0.0",
46
+ "@availity/mui-pagination": "2.0.0",
47
+ "@availity/mui-utils": "2.0.0"
48
48
  },
49
49
  "devDependencies": {
50
- "@availity/mui-button": "1.1.5",
51
- "@availity/mui-chip": "1.0.5",
52
- "@availity/mui-form-utils": "1.3.3",
53
- "@availity/mui-icon": "1.1.1",
54
- "@availity/mui-layout": "^1.0.3",
55
- "@availity/mui-link": "1.1.2",
56
- "@availity/mui-menu": "1.0.7",
57
- "@availity/mui-paper": "1.0.3",
58
- "@availity/mui-textfield": "1.3.2",
59
- "@availity/mui-typography": "1.0.3",
60
- "@mui/material": "^6.4.5",
61
- "react": "18.2.0",
62
- "react-dom": "18.2.0",
50
+ "@availity/mui-button": "2.0.0",
51
+ "@availity/mui-chip": "2.0.0",
52
+ "@availity/mui-form-utils": "2.0.0",
53
+ "@availity/mui-icon": "2.0.0",
54
+ "@availity/mui-layout": "^2.0.0",
55
+ "@availity/mui-link": "2.0.0",
56
+ "@availity/mui-menu": "2.0.0",
57
+ "@availity/mui-paper": "2.0.0",
58
+ "@availity/mui-textfield": "2.0.0",
59
+ "@availity/mui-typography": "2.0.0",
60
+ "@mui/material": "^7.3.4",
61
+ "react": "19.2.0",
62
+ "react-dom": "19.2.0",
63
63
  "react-hook-form": "^7.55.0",
64
64
  "tsup": "^8.4.0",
65
65
  "typescript": "^5.4.5"
66
66
  },
67
67
  "peerDependencies": {
68
- "@mui/material": "^6.4.5",
69
- "react": ">=16.3.0"
68
+ "@mui/material": "^7.0.0",
69
+ "react": ">=17.0.0"
70
70
  },
71
71
  "publishConfig": {
72
72
  "access": "public"
package/src/lib/Table.tsx CHANGED
@@ -8,6 +8,6 @@ export type TableProps = {
8
8
  striped?: boolean;
9
9
  } & MuiTableProps;
10
10
 
11
- export const Table = ({ className, striped, ...props }: TableProps): JSX.Element => {
11
+ export const Table = ({ className, striped, ...props }: TableProps): React.JSX.Element => {
12
12
  return <MuiTable className={`${striped ? 'striped ' : ''}${className || ''}`} {...props} />;
13
13
  };
@@ -6,6 +6,6 @@ export type TableBodyProps = {
6
6
  component?: ElementType<TableCellBaseProps>;
7
7
  } & MuiTableBodyProps;
8
8
 
9
- export const TableBody = (props: TableBodyProps): JSX.Element => {
9
+ export const TableBody = (props: TableBodyProps): React.JSX.Element => {
10
10
  return <MuiTableBody {...props} />;
11
11
  };
@@ -18,7 +18,7 @@ export type TableCellProps = {
18
18
  disableEmptyPlaceholder?: boolean;
19
19
  } & MuiTableCellProps;
20
20
 
21
- export const TableCell = ({disableEmptyPlaceholder = false, children, ...props}: TableCellProps): JSX.Element => {
21
+ export const TableCell = ({disableEmptyPlaceholder = false, children, ...props}: TableCellProps): React.JSX.Element => {
22
22
  const isPlaceholderActive = !disableEmptyPlaceholder && !children;
23
23
  const placeholder = <><div aria-hidden>&mdash;</div><div style={visuallyHidden}>No Data</div></>;
24
24
 
@@ -9,6 +9,6 @@ export type TableContainerProps = {
9
9
  component?: ElementType<TableCellBaseProps>;
10
10
  } & MuiTableContainerProps;
11
11
 
12
- export const TableContainer = (props: TableContainerProps): JSX.Element => {
12
+ export const TableContainer = (props: TableContainerProps): React.JSX.Element => {
13
13
  return <MuiTableContainer {...props} />;
14
14
  };
@@ -6,6 +6,6 @@ export type TableFooterProps = {
6
6
  component?: ElementType<TableCellBaseProps>;
7
7
  } & MuiTableFooterProps;
8
8
 
9
- export const TableFooter = (props: TableFooterProps): JSX.Element => {
9
+ export const TableFooter = (props: TableFooterProps): React.JSX.Element => {
10
10
  return <MuiTableFooter {...props} />;
11
11
  };
@@ -6,6 +6,6 @@ export type TableHeadProps = {
6
6
  component?: ElementType<TableCellBaseProps>;
7
7
  } & MuiTableHeadProps;
8
8
 
9
- export const TableHead = (props: TableHeadProps): JSX.Element => {
9
+ export const TableHead = (props: TableHeadProps): React.JSX.Element => {
10
10
  return <MuiTableHead {...props} />;
11
11
  };
@@ -3,7 +3,7 @@ import {
3
3
  default as MuiTablePagination,
4
4
  TablePaginationProps as MuiTablePaginationProps,
5
5
  } from '@mui/material/TablePagination';
6
- import { TablePaginationActionsProps as MuiTablePaginationActionsProps } from '@mui/material/TablePagination/TablePaginationActions';
6
+ import { TablePaginationActionsProps as MuiTablePaginationActionsProps } from '@mui/material/TablePaginationActions';
7
7
  import { SvgIconProps } from '@mui/material/SvgIcon';
8
8
  import { TableCellBaseProps } from '@mui/material/TableCell';
9
9
  import { Pagination, PaginationProps } from '@availity/mui-pagination';
@@ -45,7 +45,7 @@ export const TablePagination = forwardRef<unknown, TablePaginationProps>((props,
45
45
  const { Actions, paginationProps, ...rest } = props;
46
46
  const [openDetected, setOpenDetected] = useState(false);
47
47
 
48
- const ActionsPagination = (props: TablePaginationActionsProps): JSX.Element => {
48
+ const ActionsPagination = (props: TablePaginationActionsProps): React.JSX.Element => {
49
49
  // Pull secondary props off so they are not passed to Pagination component
50
50
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
51
51
  const { count, page, rowsPerPage, onPageChange, nextIconButtonProps, backIconButtonProps, slotProps, ...rest } =
@@ -6,6 +6,6 @@ export type TableRowProps = {
6
6
  component?: ElementType<TableCellBaseProps>;
7
7
  } & MuiTableRowProps;
8
8
 
9
- export const TableRow = (props: TableRowProps): JSX.Element => {
9
+ export const TableRow = (props: TableRowProps): React.JSX.Element => {
10
10
  return <MuiTableRow {...props} />;
11
11
  };
@@ -19,7 +19,7 @@ export type TableSortLabelProps = Omit<
19
19
  | 'touchRippleRef'
20
20
  >;
21
21
 
22
- const TableSortLabel = (props: TableSortLabelProps): JSX.Element => {
22
+ const TableSortLabel = (props: TableSortLabelProps): React.JSX.Element => {
23
23
  // mui rotates descending icon 180 degrees for ascending icon
24
24
  const IconComponent = props.active ? SortDownIcon : SortIcon;
25
25
  const SortedDescription = props.active ? (