@availity/mui-card 1.0.13 → 2.0.0

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 CHANGED
@@ -2,6 +2,27 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [2.0.0](https://github.com/Availity/element/compare/@availity/mui-card@1.0.13...@availity/mui-card@2.0.0) (2025-11-17)
6
+
7
+ ### Dependency Updates
8
+
9
+ * `mui-button` updated to version `1.0.13`
10
+ * `mui-icon` updated to version `1.0.13`
11
+ * `mui-form-utils` updated to version `1.0.13`
12
+ * `mui-layout` updated to version `1.0.13`
13
+ * `mui-avatar` updated to version `1.0.13`
14
+ * `mui-chip` updated to version `1.0.13`
15
+
16
+ ### ⚠ BREAKING CHANGES
17
+
18
+ * @mui/material upgraded to v7
19
+ * @mui/x-* upgraded to v8
20
+ * react upgraded to v19
21
+
22
+ ### Features
23
+
24
+ * upgrade material and react dependencies ([51602a4](https://github.com/Availity/element/commit/51602a48c5304db6f61e2c7e772c9a3a4aa3f65c))
25
+
5
26
  ## [1.0.13](https://github.com/Availity/element/compare/@availity/mui-card@1.0.12...@availity/mui-card@1.0.13) (2025-10-30)
6
27
 
7
28
  ### Dependency Updates
package/dist/index.d.mts CHANGED
@@ -9,22 +9,22 @@ import { CardMediaProps as CardMediaProps$1 } from '@mui/material/CardMedia';
9
9
  interface CardProps extends Omit<CardProps$1, 'elevation' | 'raised' | 'square'> {
10
10
  children?: React.ReactNode;
11
11
  }
12
- declare const Card: ({ children, ...rest }: CardProps) => JSX.Element;
12
+ declare const Card: ({ children, ...rest }: CardProps) => React.JSX.Element;
13
13
 
14
14
  interface CardActionAreaProps extends Omit<CardActionAreaProps$1, 'centerRipple' | 'disableRipple' | 'disableTouchRipple' | 'focusRipple' | 'TouchRippleProps' | 'touchRippleRef'> {
15
15
  children?: React.ReactNode;
16
16
  }
17
- declare const CardActionArea: ({ children, ...rest }: CardActionAreaProps) => JSX.Element;
17
+ declare const CardActionArea: ({ children, ...rest }: CardActionAreaProps) => React.JSX.Element;
18
18
 
19
19
  interface CardActionsProps extends CardActionsProps$1 {
20
20
  children?: React.ReactNode;
21
21
  }
22
- declare const CardActions: ({ children, ...rest }: CardActionsProps) => JSX.Element;
22
+ declare const CardActions: ({ children, ...rest }: CardActionsProps) => React.JSX.Element;
23
23
 
24
24
  interface CardContentProps extends CardContentProps$1 {
25
25
  children?: React.ReactNode;
26
26
  }
27
- declare const CardContent: ({ children, ...rest }: CardContentProps) => JSX.Element;
27
+ declare const CardContent: ({ children, ...rest }: CardContentProps) => React.JSX.Element;
28
28
 
29
29
  type StatusChipProps = {
30
30
  /** The color of the component.
@@ -42,11 +42,11 @@ interface CardHeaderProps extends CardHeaderProps$1 {
42
42
  /** Section at the top-right of the card for displaying logos. */
43
43
  logo?: React.ReactNode;
44
44
  }
45
- declare const CardHeader: ({ titleTypographyProps, subheaderTypographyProps, statusChipProps, action, subheader, title, logo, ...rest }: CardHeaderProps) => JSX.Element;
45
+ declare const CardHeader: ({ titleTypographyProps, subheaderTypographyProps, statusChipProps, action, subheader, title, logo, ...rest }: CardHeaderProps) => React.JSX.Element;
46
46
 
47
47
  interface CardMediaProps extends CardMediaProps$1 {
48
48
  children?: React.ReactNode;
49
49
  }
50
- declare const CardMedia: ({ children, ...rest }: CardMediaProps) => JSX.Element;
50
+ declare const CardMedia: ({ children, ...rest }: CardMediaProps) => React.JSX.Element;
51
51
 
52
52
  export { Card, CardActionArea, type CardActionAreaProps, CardActions, type CardActionsProps, CardContent, type CardContentProps, CardHeader, type CardHeaderProps, CardMedia, type CardMediaProps, type CardProps };
package/dist/index.d.ts CHANGED
@@ -9,22 +9,22 @@ import { CardMediaProps as CardMediaProps$1 } from '@mui/material/CardMedia';
9
9
  interface CardProps extends Omit<CardProps$1, 'elevation' | 'raised' | 'square'> {
10
10
  children?: React.ReactNode;
11
11
  }
12
- declare const Card: ({ children, ...rest }: CardProps) => JSX.Element;
12
+ declare const Card: ({ children, ...rest }: CardProps) => React.JSX.Element;
13
13
 
14
14
  interface CardActionAreaProps extends Omit<CardActionAreaProps$1, 'centerRipple' | 'disableRipple' | 'disableTouchRipple' | 'focusRipple' | 'TouchRippleProps' | 'touchRippleRef'> {
15
15
  children?: React.ReactNode;
16
16
  }
17
- declare const CardActionArea: ({ children, ...rest }: CardActionAreaProps) => JSX.Element;
17
+ declare const CardActionArea: ({ children, ...rest }: CardActionAreaProps) => React.JSX.Element;
18
18
 
19
19
  interface CardActionsProps extends CardActionsProps$1 {
20
20
  children?: React.ReactNode;
21
21
  }
22
- declare const CardActions: ({ children, ...rest }: CardActionsProps) => JSX.Element;
22
+ declare const CardActions: ({ children, ...rest }: CardActionsProps) => React.JSX.Element;
23
23
 
24
24
  interface CardContentProps extends CardContentProps$1 {
25
25
  children?: React.ReactNode;
26
26
  }
27
- declare const CardContent: ({ children, ...rest }: CardContentProps) => JSX.Element;
27
+ declare const CardContent: ({ children, ...rest }: CardContentProps) => React.JSX.Element;
28
28
 
29
29
  type StatusChipProps = {
30
30
  /** The color of the component.
@@ -42,11 +42,11 @@ interface CardHeaderProps extends CardHeaderProps$1 {
42
42
  /** Section at the top-right of the card for displaying logos. */
43
43
  logo?: React.ReactNode;
44
44
  }
45
- declare const CardHeader: ({ titleTypographyProps, subheaderTypographyProps, statusChipProps, action, subheader, title, logo, ...rest }: CardHeaderProps) => JSX.Element;
45
+ declare const CardHeader: ({ titleTypographyProps, subheaderTypographyProps, statusChipProps, action, subheader, title, logo, ...rest }: CardHeaderProps) => React.JSX.Element;
46
46
 
47
47
  interface CardMediaProps extends CardMediaProps$1 {
48
48
  children?: React.ReactNode;
49
49
  }
50
- declare const CardMedia: ({ children, ...rest }: CardMediaProps) => JSX.Element;
50
+ declare const CardMedia: ({ children, ...rest }: CardMediaProps) => React.JSX.Element;
51
51
 
52
52
  export { Card, CardActionArea, type CardActionAreaProps, CardActions, type CardActionsProps, CardContent, type CardContentProps, CardHeader, type CardHeaderProps, CardMedia, type CardMediaProps, type CardProps };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@availity/mui-card",
3
- "version": "1.0.13",
3
+ "version": "2.0.0",
4
4
  "description": "Availity MUI Card Component - part of the @availity/element design system",
5
5
  "keywords": [
6
6
  "react",
@@ -40,17 +40,17 @@
40
40
  "publish:canary": "yarn npm publish --access public --tag canary"
41
41
  },
42
42
  "devDependencies": {
43
- "@availity/mui-button": "^1.1.5",
44
- "@availity/mui-icon": "^1.1.1",
45
- "@mui/material": "^6.4.5",
46
- "react": "18.2.0",
47
- "react-dom": "18.2.0",
43
+ "@availity/mui-button": "^2.0.0",
44
+ "@availity/mui-icon": "^2.0.0",
45
+ "@mui/material": "^7.3.4",
46
+ "react": "19.2.0",
47
+ "react-dom": "19.2.0",
48
48
  "tsup": "^8.4.0",
49
49
  "typescript": "^5.4.5"
50
50
  },
51
51
  "peerDependencies": {
52
- "@mui/material": "^6.4.5",
53
- "react": ">=16.3.0"
52
+ "@mui/material": "^7.0.0",
53
+ "react": ">=17.0.0"
54
54
  },
55
55
  "publishConfig": {
56
56
  "access": "public"
package/src/lib/Card.tsx CHANGED
@@ -4,6 +4,6 @@ export interface CardProps extends Omit<MuiCardProps, 'elevation' | 'raised' | '
4
4
  children?: React.ReactNode;
5
5
  }
6
6
 
7
- export const Card = ({ children, ...rest }: CardProps): JSX.Element => {
7
+ export const Card = ({ children, ...rest }: CardProps): React.JSX.Element => {
8
8
  return <MuiCard {...rest}>{children}</MuiCard>;
9
9
  };
@@ -11,7 +11,7 @@ export interface CardActionAreaProps
11
11
  children?: React.ReactNode;
12
12
  }
13
13
 
14
- export const CardActionArea = ({ children, ...rest }: CardActionAreaProps): JSX.Element => {
14
+ export const CardActionArea = ({ children, ...rest }: CardActionAreaProps): React.JSX.Element => {
15
15
  return (
16
16
  <MuiCardActionArea {...rest} disableRipple>
17
17
  {children}
@@ -4,6 +4,6 @@ export interface CardActionsProps extends MuiCardActionsProps {
4
4
  children?: React.ReactNode;
5
5
  }
6
6
 
7
- export const CardActions = ({ children, ...rest }: CardActionsProps): JSX.Element => {
7
+ export const CardActions = ({ children, ...rest }: CardActionsProps): React.JSX.Element => {
8
8
  return <MuiCardActions {...rest}>{children}</MuiCardActions>;
9
9
  };
@@ -4,6 +4,6 @@ export interface CardContentProps extends MuiCardContentProps {
4
4
  children?: React.ReactNode;
5
5
  }
6
6
 
7
- export const CardContent = ({ children, ...rest }: CardContentProps): JSX.Element => {
7
+ export const CardContent = ({ children, ...rest }: CardContentProps): React.JSX.Element => {
8
8
  return <MuiCardContent {...rest}>{children}</MuiCardContent>;
9
9
  };
@@ -22,7 +22,7 @@ export const CardHeader = ({
22
22
  title,
23
23
  logo,
24
24
  ...rest
25
- }: CardHeaderProps): JSX.Element => {
25
+ }: CardHeaderProps): React.JSX.Element => {
26
26
  return (
27
27
  <MuiCardHeader
28
28
  {...rest}
@@ -4,6 +4,6 @@ export interface CardMediaProps extends MuiCardMediaProps {
4
4
  children?: React.ReactNode;
5
5
  }
6
6
 
7
- export const CardMedia = ({ children, ...rest }: CardMediaProps): JSX.Element => {
7
+ export const CardMedia = ({ children, ...rest }: CardMediaProps): React.JSX.Element => {
8
8
  return <MuiCardMedia {...rest}>{children}</MuiCardMedia>;
9
9
  };