@availity/mui-card 1.0.13 → 2.0.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/CHANGELOG.md CHANGED
@@ -2,6 +2,37 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [2.0.1](https://github.com/Availity/element/compare/@availity/mui-card@2.0.0...@availity/mui-card@2.0.1) (2025-12-03)
6
+
7
+ ### Dependency Updates
8
+
9
+ * `mui-button` updated to version `2.0.0`
10
+ * `mui-icon` updated to version `2.0.0`
11
+ * `mui-form-utils` updated to version `2.0.0`
12
+ * `mui-layout` updated to version `2.0.0`
13
+ * `mui-avatar` updated to version `2.0.0`
14
+ * `mui-chip` updated to version `2.0.0`
15
+ ## [2.0.0](https://github.com/Availity/element/compare/@availity/mui-card@1.0.13...@availity/mui-card@2.0.0) (2025-11-17)
16
+
17
+ ### Dependency Updates
18
+
19
+ * `mui-button` updated to version `1.0.13`
20
+ * `mui-icon` updated to version `1.0.13`
21
+ * `mui-form-utils` updated to version `1.0.13`
22
+ * `mui-layout` updated to version `1.0.13`
23
+ * `mui-avatar` updated to version `1.0.13`
24
+ * `mui-chip` updated to version `1.0.13`
25
+
26
+ ### ⚠ BREAKING CHANGES
27
+
28
+ * @mui/material upgraded to v7
29
+ * @mui/x-* upgraded to v8
30
+ * react upgraded to v19
31
+
32
+ ### Features
33
+
34
+ * upgrade material and react dependencies ([51602a4](https://github.com/Availity/element/commit/51602a48c5304db6f61e2c7e772c9a3a4aa3f65c))
35
+
5
36
  ## [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
37
 
7
38
  ### 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/introduction.mdx CHANGED
@@ -1,5 +1,4 @@
1
- import { Markdown } from '@storybook/blocks';
2
- import { Meta } from '@storybook/addon-docs';
1
+ import { Markdown, Meta } from '@storybook/addon-docs/blocks';
3
2
  import ReadMe from './README.md?raw';
4
3
  import CHANGELOG from './CHANGELOG.md?raw';
5
4
 
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.1",
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.1",
44
+ "@availity/mui-icon": "^2.0.1",
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"
@@ -1,6 +1,6 @@
1
1
  // Each exported component in the package should have its own stories file
2
2
 
3
- import type { Meta, StoryObj } from '@storybook/react';
3
+ import type { Meta, StoryObj } from '@storybook/react-vite';
4
4
  import { Button } from '@availity/mui-button';
5
5
  import { FieldHelpIcon } from '@availity/mui-form-utils';
6
6
  import { Grid } from '@availity/mui-layout';
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
  };
@@ -1,6 +1,6 @@
1
1
  // Each exported component in the package should have its own stories file
2
2
 
3
- import type { Meta, StoryObj } from '@storybook/react';
3
+ import type { Meta, StoryObj } from '@storybook/react-vite';
4
4
  import { CardActionArea, CardActionAreaProps } from './CardActionArea';
5
5
  import { Card } from './Card';
6
6
  import { CardContent } from './CardContent';
@@ -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}
@@ -1,6 +1,6 @@
1
1
  // Each exported component in the package should have its own stories file
2
2
 
3
- import type { Meta, StoryObj } from '@storybook/react';
3
+ import type { Meta, StoryObj } from '@storybook/react-vite';
4
4
  import { CardActions, CardActionsProps } from './CardActions';
5
5
  import { Card } from './Card';
6
6
  import { Button, IconButton } from '@availity/mui-button';
@@ -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
  };
@@ -1,6 +1,6 @@
1
1
  // Each exported component in the package should have its own stories file
2
2
 
3
- import type { Meta, StoryObj } from '@storybook/react';
3
+ import type { Meta, StoryObj } from '@storybook/react-vite';
4
4
  import { CardContent, CardContentProps } from './CardContent';
5
5
  import { Card } from './Card';
6
6
 
@@ -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
  };
@@ -1,6 +1,6 @@
1
1
  // Each exported component in the package should have its own stories file
2
2
 
3
- import type { Meta, StoryObj } from '@storybook/react';
3
+ import type { Meta, StoryObj } from '@storybook/react-vite';
4
4
  import { Card } from './Card';
5
5
  import { CardHeader, CardHeaderProps } from './CardHeader';
6
6
  import { IconButton } from '@availity/mui-button';
@@ -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}
@@ -1,5 +1,4 @@
1
- import { Markdown } from '@storybook/blocks';
2
- import { Meta } from '@storybook/addon-docs';
1
+ import { Markdown, Meta } from '@storybook/addon-docs/blocks';
3
2
 
4
3
  <Meta title="Components/Card/CardHeader/CardHeaderWithLogo" />
5
4
 
@@ -1,6 +1,6 @@
1
1
  // Each exported component in the package should have its own stories file
2
2
 
3
- import type { Meta, StoryObj } from '@storybook/react';
3
+ import type { Meta, StoryObj } from '@storybook/react-vite';
4
4
  import { CardMedia, CardMediaProps } from './CardMedia';
5
5
  import { Card } from './Card';
6
6
 
@@ -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
  };