@campxdev/react-blueprint 1.0.17 → 1.1.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,6 +1,6 @@
1
1
  {
2
2
  "name": "@campxdev/react-blueprint",
3
- "version": "1.0.17",
3
+ "version": "1.1.1",
4
4
  "main": "./export.ts",
5
5
  "private": false,
6
6
  "dependencies": {
@@ -19,9 +19,9 @@ const getIcon = (severity: MuiAlertProps["severity"]) => {
19
19
  }
20
20
  };
21
21
 
22
- export const Alert = ({ severity, message }: AlertProps) => {
22
+ export const Alert = ({ severity, message, ...rest }: AlertProps) => {
23
23
  return (
24
- <MuiAlert severity={severity} icon={getIcon(severity)}>
24
+ <MuiAlert severity={severity} icon={getIcon(severity)} {...rest}>
25
25
  {message}
26
26
  </MuiAlert>
27
27
  );
@@ -59,7 +59,7 @@ export const getCommonTheme = (mode: Theme) => {
59
59
  MuiAlert: {
60
60
  styleOverrides: {
61
61
  root: {
62
- maxWidth: "400px",
62
+ width: "400px",
63
63
  fontFamily: "Poppins",
64
64
  fontWeight: 500,
65
65
  fontSize: "14px",
@@ -219,7 +219,6 @@ export const getCommonTheme = (mode: Theme) => {
219
219
  fontSize: "14px ",
220
220
  fontFamily: "Poppins",
221
221
  fontWeight: 600,
222
- width: "350px",
223
222
  "&:hover": {
224
223
  boxShadow: "none ",
225
224
  "@media (hover: none )": {
@@ -262,7 +261,6 @@ export const getCommonTheme = (mode: Theme) => {
262
261
  height: "7px",
263
262
  },
264
263
  minWidth: "200px",
265
- width: "350px",
266
264
  margin: "5px 0px",
267
265
  },
268
266
  },
@@ -344,7 +342,6 @@ export const getCommonTheme = (mode: Theme) => {
344
342
  "& .MuiOutlinedInput-root .MuiAutocomplete-input": {
345
343
  padding: 0,
346
344
  maxHeight: "40px",
347
- maxWidth: "400px",
348
345
  },
349
346
  overflowY: "auto",
350
347
  },
@@ -365,7 +362,6 @@ export const getCommonTheme = (mode: Theme) => {
365
362
  },
366
363
  },
367
364
  maxHeight: "40px",
368
- maxWidth: "400px",
369
365
  fontSize: "16px",
370
366
  fontFamily: "Heebo",
371
367
  fontWeight: 300,