@availity/mui-table 1.0.21 → 2.0.1
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 +45 -0
- package/dist/index.d.mts +8 -8
- package/dist/index.d.ts +8 -8
- package/introduction.mdx +1 -2
- package/package.json +20 -20
- package/src/lib/Patterns.stories.tsx +1 -1
- package/src/lib/Table.stories.tsx +1 -1
- package/src/lib/Table.tsx +1 -1
- package/src/lib/TableBody.stories.tsx +1 -1
- package/src/lib/TableBody.tsx +1 -1
- package/src/lib/TableCell.stories.tsx +1 -1
- package/src/lib/TableCell.tsx +1 -1
- package/src/lib/TableContainer.stories.tsx +1 -1
- package/src/lib/TableContainer.tsx +1 -1
- package/src/lib/TableFooter.stories.tsx +1 -1
- package/src/lib/TableFooter.tsx +1 -1
- package/src/lib/TableHead.stories.tsx +1 -1
- package/src/lib/TableHead.tsx +1 -1
- package/src/lib/TablePagination.stories.tsx +1 -1
- package/src/lib/TablePagination.tsx +2 -2
- package/src/lib/TableRow.stories.tsx +1 -1
- package/src/lib/TableRow.tsx +1 -1
- package/src/lib/TableSortLabel.stories.tsx +1 -1
- package/src/lib/TableSortLabel.tsx +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,51 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [2.0.1](https://github.com/Availity/element/compare/@availity/mui-table@2.0.0...@availity/mui-table@2.0.1) (2025-12-03)
|
|
6
|
+
|
|
7
|
+
### Dependency Updates
|
|
8
|
+
|
|
9
|
+
* `mui-button` updated to version `2.0.0`
|
|
10
|
+
* `mui-chip` updated to version `2.0.0`
|
|
11
|
+
* `mui-form-utils` updated to version `2.0.0`
|
|
12
|
+
* `mui-icon` updated to version `2.0.0`
|
|
13
|
+
* `mui-layout` updated to version `2.0.0`
|
|
14
|
+
* `mui-link` updated to version `2.0.0`
|
|
15
|
+
* `mui-menu` updated to version `2.0.0`
|
|
16
|
+
* `mui-paper` updated to version `2.0.0`
|
|
17
|
+
* `mui-textfield` updated to version `2.0.0`
|
|
18
|
+
* `mui-typography` updated to version `2.0.0`
|
|
19
|
+
* `mui-pagination` updated to version `2.0.0`
|
|
20
|
+
* `mui-utils` updated to version `2.0.0`
|
|
21
|
+
* `mui-transitions` updated to version `2.0.0`
|
|
22
|
+
## [2.0.0](https://github.com/Availity/element/compare/@availity/mui-table@1.0.21...@availity/mui-table@2.0.0) (2025-11-17)
|
|
23
|
+
|
|
24
|
+
### Dependency Updates
|
|
25
|
+
|
|
26
|
+
* `mui-button` updated to version `1.0.21`
|
|
27
|
+
* `mui-chip` updated to version `1.0.21`
|
|
28
|
+
* `mui-form-utils` updated to version `1.0.21`
|
|
29
|
+
* `mui-icon` updated to version `1.0.21`
|
|
30
|
+
* `mui-layout` updated to version `1.0.21`
|
|
31
|
+
* `mui-link` updated to version `1.0.21`
|
|
32
|
+
* `mui-menu` updated to version `1.0.21`
|
|
33
|
+
* `mui-paper` updated to version `1.0.21`
|
|
34
|
+
* `mui-textfield` updated to version `1.0.21`
|
|
35
|
+
* `mui-typography` updated to version `1.0.21`
|
|
36
|
+
* `mui-pagination` updated to version `1.0.21`
|
|
37
|
+
* `mui-utils` updated to version `1.0.21`
|
|
38
|
+
* `mui-transitions` updated to version `1.0.21`
|
|
39
|
+
|
|
40
|
+
### ⚠ BREAKING CHANGES
|
|
41
|
+
|
|
42
|
+
* @mui/material upgraded to v7
|
|
43
|
+
* @mui/x-* upgraded to v8
|
|
44
|
+
* react upgraded to v19
|
|
45
|
+
|
|
46
|
+
### Features
|
|
47
|
+
|
|
48
|
+
* upgrade material and react dependencies ([51602a4](https://github.com/Availity/element/commit/51602a48c5304db6f61e2c7e772c9a3a4aa3f65c))
|
|
49
|
+
|
|
5
50
|
## [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
51
|
|
|
7
52
|
### 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/introduction.mdx
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@availity/mui-table",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.1",
|
|
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": "
|
|
45
|
-
"@availity/mui-icon": "
|
|
46
|
-
"@availity/mui-pagination": "
|
|
47
|
-
"@availity/mui-utils": "
|
|
44
|
+
"@availity/mui-form-utils": "2.0.1",
|
|
45
|
+
"@availity/mui-icon": "2.0.1",
|
|
46
|
+
"@availity/mui-pagination": "2.0.1",
|
|
47
|
+
"@availity/mui-utils": "2.0.1"
|
|
48
48
|
},
|
|
49
49
|
"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": "^
|
|
61
|
-
"react": "
|
|
62
|
-
"react-dom": "
|
|
50
|
+
"@availity/mui-button": "2.0.1",
|
|
51
|
+
"@availity/mui-chip": "2.0.1",
|
|
52
|
+
"@availity/mui-form-utils": "2.0.1",
|
|
53
|
+
"@availity/mui-icon": "2.0.1",
|
|
54
|
+
"@availity/mui-layout": "^2.0.1",
|
|
55
|
+
"@availity/mui-link": "2.0.1",
|
|
56
|
+
"@availity/mui-menu": "2.0.1",
|
|
57
|
+
"@availity/mui-paper": "2.0.1",
|
|
58
|
+
"@availity/mui-textfield": "2.0.1",
|
|
59
|
+
"@availity/mui-typography": "2.0.1",
|
|
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": "^
|
|
69
|
-
"react": ">=
|
|
68
|
+
"@mui/material": "^7.0.0",
|
|
69
|
+
"react": ">=17.0.0"
|
|
70
70
|
},
|
|
71
71
|
"publishConfig": {
|
|
72
72
|
"access": "public"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
|
-
import { StoryObj, Decorator } from '@storybook/react';
|
|
2
|
+
import { StoryObj, Decorator } from '@storybook/react-vite';
|
|
3
3
|
import FormControl from '@mui/material/FormControl';
|
|
4
4
|
import FormGroup from '@mui/material/FormGroup';
|
|
5
5
|
import Popover from '@mui/material/Popover';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable @nx/enforce-module-boundaries */
|
|
2
2
|
// Each exported component in the package should have its own stories file
|
|
3
3
|
|
|
4
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
4
|
+
import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
5
5
|
import { useMemo, useState } from 'react';
|
|
6
6
|
import Checkbox from '@mui/material/Checkbox';
|
|
7
7
|
import { IconButton } from '@availity/mui-button';
|
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
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Each exported component in the package should have its own stories file
|
|
2
2
|
|
|
3
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
3
|
+
import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
4
4
|
import { TableBody, TableBodyProps } from './TableBody';
|
|
5
5
|
import { TableRow } from './TableRow';
|
|
6
6
|
import { TableCell } from './TableCell';
|
package/src/lib/TableBody.tsx
CHANGED
|
@@ -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
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Each exported component in the package should have its own stories file
|
|
2
2
|
|
|
3
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
3
|
+
import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
4
4
|
import { TableCell, TableCellProps } from './TableCell';
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof TableCell> = {
|
package/src/lib/TableCell.tsx
CHANGED
|
@@ -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>—</div><div style={visuallyHidden}>No Data</div></>;
|
|
24
24
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Each exported component in the package should have its own stories file
|
|
2
2
|
|
|
3
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
3
|
+
import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
4
4
|
import { TableContainer, TableContainerProps } from './TableContainer';
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof TableContainer> = {
|
|
@@ -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
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Each exported component in the package should have its own stories file
|
|
2
2
|
|
|
3
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
3
|
+
import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
4
4
|
import { TableFooter, TableFooterProps } from './TableFooter';
|
|
5
5
|
import { Table, TableCell, TablePagination, TableRow } from '..';
|
|
6
6
|
|
package/src/lib/TableFooter.tsx
CHANGED
|
@@ -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
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Each exported component in the package should have its own stories file
|
|
2
2
|
|
|
3
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
3
|
+
import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
4
4
|
import { TableHead, TableHeadProps } from './TableHead';
|
|
5
5
|
import { TableCell, TableRow } from '..';
|
|
6
6
|
|
package/src/lib/TableHead.tsx
CHANGED
|
@@ -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
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Each exported component in the package should have its own stories file
|
|
2
2
|
import { useEffect, useState } from 'react';
|
|
3
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
3
|
+
import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
4
4
|
|
|
5
5
|
import { Table, TableFooter, TableRow, TablePagination, TablePaginationProps } from '..';
|
|
6
6
|
|
|
@@ -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/
|
|
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 } =
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Each exported component in the package should have its own stories file
|
|
2
2
|
|
|
3
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
3
|
+
import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
4
4
|
import { TableRow, TableRowProps } from './TableRow';
|
|
5
5
|
import { TableBody, TableCell } from '..';
|
|
6
6
|
import { useState } from 'react';
|
package/src/lib/TableRow.tsx
CHANGED
|
@@ -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
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Each exported component in the package should have its own stories file
|
|
2
2
|
|
|
3
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
3
|
+
import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
4
4
|
import { TableSortLabel, TableSortLabelProps } from './TableSortLabel';
|
|
5
5
|
import { Grid } from '@availity/mui-layout';
|
|
6
6
|
import { useState } from 'react';
|
|
@@ -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 ? (
|