material-react-table 0.18.0 → 0.18.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/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.18.0",
2
+ "version": "0.18.1",
3
3
  "license": "MIT",
4
4
  "name": "material-react-table",
5
5
  "description": "A fully featured Material UI implementation of TanStack React Table, inspired by material-table and the MUI X DataGrid, written from the ground up in TypeScript.",
@@ -1,5 +1,5 @@
1
1
  import React, { FC, Fragment } from 'react';
2
- import { Alert, Box, Chip, Collapse } from '@mui/material';
2
+ import { Alert, AlertTitle, Box, Chip, Collapse } from '@mui/material';
3
3
  import { MRT_TableInstance } from '..';
4
4
 
5
5
  interface Props {
@@ -63,6 +63,7 @@ export const MRT_ToolbarAlertBanner: FC<Props> = ({
63
63
  <Alert
64
64
  color="info"
65
65
  icon={false}
66
+ {...alertProps}
66
67
  sx={{
67
68
  borderRadius: 0,
68
69
  fontSize: '1rem',
@@ -75,9 +76,13 @@ export const MRT_ToolbarAlertBanner: FC<Props> = ({
75
76
  zIndex: 2,
76
77
  ...alertProps?.sx,
77
78
  }}
78
- {...alertProps}
79
79
  >
80
+ {alertProps?.title && <AlertTitle>{alertProps.title}</AlertTitle>}
80
81
  <Box sx={{ p: '0.5rem 1rem' }}>
82
+ {alertProps?.children}
83
+ {alertProps?.children && (selectMessage || groupedByMessage) && (
84
+ <br />
85
+ )}
81
86
  {selectMessage}
82
87
  {selectMessage && groupedByMessage && <br />}
83
88
  {groupedByMessage}