react-crud-mui 0.2.66 → 0.2.67

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.
@@ -51,7 +51,7 @@ export interface ListPageFilterProps<TModel extends FieldValues, TFilter extends
51
51
  * Enable table sorting default true
52
52
  */
53
53
  enableSorting?: boolean;
54
- cardProps?: Pick<CardListProps<TModel>, 'cardColProps' | 'cardRowProps' | 'onCardMeta' | 'emptyTextProps'>;
54
+ cardProps?: Pick<CardListProps<TModel>, 'cardColProps' | 'cardRowProps' | 'onCardMeta' | 'emptyTextProps' | 'cardWrapperProps'>;
55
55
  }
56
56
  /**
57
57
  * ListPage with filtering features
@@ -1,8 +1,12 @@
1
1
  import { AlertProps } from '@mui/material/Alert';
2
2
  import { Message } from '../hooks/useNormalizeMessages';
3
- interface AlertsProps {
3
+ import { default as ErrorAlert } from './ErrorAlert';
4
+ export interface AlertsProps {
4
5
  messages?: Message[];
5
6
  defaultType?: AlertProps['severity'];
6
7
  }
7
8
  declare function Alerts({ messages, defaultType }: AlertsProps): import("react/jsx-runtime").JSX.Element;
9
+ declare namespace Alerts {
10
+ var Error: typeof ErrorAlert;
11
+ }
8
12
  export default Alerts;
@@ -0,0 +1,6 @@
1
+ import { ServerError } from '../../utils';
2
+ interface ErrorAlertProps {
3
+ error?: ServerError;
4
+ }
5
+ declare function ErrorAlert({ error }: ErrorAlertProps): import("react/jsx-runtime").JSX.Element;
6
+ export default ErrorAlert;