@verifiedinc-public/shared-ui-elements 0.13.2-beta.4 → 0.13.2-beta.6
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
@@ -6,7 +6,6 @@ import {
|
|
6
6
|
IconButton,
|
7
7
|
type SxProps,
|
8
8
|
} from '@mui/material';
|
9
|
-
import { When } from '../When';
|
10
9
|
import {
|
11
10
|
closeSnackbar,
|
12
11
|
type CustomContentProps,
|
@@ -16,7 +15,7 @@ import {
|
|
16
15
|
SnackbarProvider,
|
17
16
|
} from 'notistack';
|
18
17
|
import { forwardRef } from 'react';
|
19
|
-
import {
|
18
|
+
import { When } from '../When';
|
20
19
|
|
21
20
|
declare module 'notistack' {
|
22
21
|
interface VariantOverrides {
|
@@ -33,8 +32,8 @@ declare module 'notistack' {
|
|
33
32
|
}
|
34
33
|
}
|
35
34
|
|
36
|
-
export type { SnackbarKey };
|
37
35
|
export { SnackbarProvider };
|
36
|
+
export type { SnackbarKey };
|
38
37
|
|
39
38
|
interface AlertAction {
|
40
39
|
onAction?: (id: SnackbarKey) => void;
|
@@ -107,7 +106,7 @@ export const CustomAlertComponent = forwardRef<
|
|
107
106
|
) => {
|
108
107
|
return (
|
109
108
|
<SnackbarContent ref={ref} {...props}>
|
110
|
-
<
|
109
|
+
<Alert
|
111
110
|
severity={severity}
|
112
111
|
action={
|
113
112
|
<Box ml={1}>
|
@@ -136,11 +135,12 @@ export const CustomAlertComponent = forwardRef<
|
|
136
135
|
sx={{
|
137
136
|
alignItems: 'center',
|
138
137
|
width: '320px',
|
139
|
-
|
138
|
+
maxWidth: '320px',
|
139
|
+
minWidth: '320px',
|
140
140
|
}}
|
141
141
|
>
|
142
142
|
{message}
|
143
|
-
</
|
143
|
+
</Alert>
|
144
144
|
</SnackbarContent>
|
145
145
|
);
|
146
146
|
},
|