@availity/mui-card 0.2.11 → 0.2.13

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,22 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [0.2.13](https://github.com/Availity/element/compare/@availity/mui-card@0.2.12...@availity/mui-card@0.2.13) (2024-04-15)
6
+
7
+ ### Dependency Updates
8
+
9
+ * `mui-button` updated to version `0.6.6`
10
+ ## [0.2.12](https://github.com/Availity/element/compare/@availity/mui-card@0.2.11...@availity/mui-card@0.2.12) (2024-04-04)
11
+
12
+ ### Dependency Updates
13
+
14
+ * `mui-button` updated to version `0.6.5`
15
+ * `mui-icon` updated to version `0.8.1`
16
+
17
+ ### Performance Improvements
18
+
19
+ * **mui-card:** use path imports for material deps ([f1f9c14](https://github.com/Availity/element/commit/f1f9c1452e78ee25b837f1a9ccb6ca2e2ed8e6fa))
20
+
5
21
  ## [0.2.11](https://github.com/Availity/element/compare/@availity/mui-card@0.2.10...@availity/mui-card@0.2.11) (2024-03-15)
6
22
 
7
23
  ### Dependency Updates
package/dist/index.d.ts CHANGED
@@ -1,4 +1,9 @@
1
- import { CardProps as CardProps$1, CardActionAreaProps as CardActionAreaProps$1, CardActionsProps as CardActionsProps$1, CardContentProps as CardContentProps$1, CardHeaderProps as CardHeaderProps$1, CardMediaProps as CardMediaProps$1 } from '@mui/material';
1
+ import { CardProps as CardProps$1 } from '@mui/material/Card';
2
+ import { CardActionAreaProps as CardActionAreaProps$1 } from '@mui/material/CardActionArea';
3
+ import { CardActionsProps as CardActionsProps$1 } from '@mui/material/CardActions';
4
+ import { CardContentProps as CardContentProps$1 } from '@mui/material/CardContent';
5
+ import { CardHeaderProps as CardHeaderProps$1 } from '@mui/material/CardHeader';
6
+ import { CardMediaProps as CardMediaProps$1 } from '@mui/material/CardMedia';
2
7
 
3
8
  interface CardProps extends Omit<CardProps$1, 'elevation' | 'variant' | 'raised' | 'square'> {
4
9
  children?: React.ReactNode;
package/dist/index.js CHANGED
@@ -1,7 +1,9 @@
1
1
  "use strict";
2
+ var __create = Object.create;
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
5
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
8
  var __export = (target, all) => {
7
9
  for (var name in all)
@@ -15,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
15
17
  }
16
18
  return to;
17
19
  };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
+ mod
23
+ ));
18
24
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
25
 
20
26
  // src/index.ts
@@ -30,20 +36,20 @@ __export(src_exports, {
30
36
  module.exports = __toCommonJS(src_exports);
31
37
 
32
38
  // src/lib/Card.tsx
33
- var import_material = require("@mui/material");
39
+ var import_Card = __toESM(require("@mui/material/Card"));
34
40
  var import_jsx_runtime = require("react/jsx-runtime");
35
41
  var Card = ({ children, ...rest }) => {
36
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Card, {
42
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Card.default, {
37
43
  ...rest,
38
44
  children
39
45
  });
40
46
  };
41
47
 
42
48
  // src/lib/CardActionArea.tsx
43
- var import_material2 = require("@mui/material");
49
+ var import_CardActionArea = __toESM(require("@mui/material/CardActionArea"));
44
50
  var import_jsx_runtime = require("react/jsx-runtime");
45
51
  var CardActionArea = ({ children, ...rest }) => {
46
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material2.CardActionArea, {
52
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_CardActionArea.default, {
47
53
  ...rest,
48
54
  disableRipple: true,
49
55
  children
@@ -51,20 +57,20 @@ var CardActionArea = ({ children, ...rest }) => {
51
57
  };
52
58
 
53
59
  // src/lib/CardActions.tsx
54
- var import_material3 = require("@mui/material");
60
+ var import_CardActions = __toESM(require("@mui/material/CardActions"));
55
61
  var import_jsx_runtime = require("react/jsx-runtime");
56
62
  var CardActions = ({ children, ...rest }) => {
57
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material3.CardActions, {
63
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_CardActions.default, {
58
64
  ...rest,
59
65
  children
60
66
  });
61
67
  };
62
68
 
63
69
  // src/lib/CardContent.tsx
64
- var import_material4 = require("@mui/material");
70
+ var import_CardContent = __toESM(require("@mui/material/CardContent"));
65
71
  var import_jsx_runtime = require("react/jsx-runtime");
66
72
  var CardContent = ({ children, ...rest }) => {
67
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material4.CardContent, {
73
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_CardContent.default, {
68
74
  ...rest,
69
75
  children
70
76
  });
@@ -72,7 +78,7 @@ var CardContent = ({ children, ...rest }) => {
72
78
 
73
79
  // src/lib/CardHeader.tsx
74
80
  var import_styles = require("@mui/material/styles");
75
- var import_material5 = require("@mui/material");
81
+ var import_CardHeader = __toESM(require("@mui/material/CardHeader"));
76
82
  var import_jsx_runtime = require("react/jsx-runtime");
77
83
  var CardHeader = ({
78
84
  titleTypographyProps,
@@ -82,7 +88,7 @@ var CardHeader = ({
82
88
  var _a, _b, _c, _d;
83
89
  const theme = (0, import_styles.useTheme)();
84
90
  const titleVariant = (_d = (_c = (_b = (_a = theme.components) == null ? void 0 : _a.MuiCardHeader) == null ? void 0 : _b.defaultProps) == null ? void 0 : _c.titleTypographyProps) == null ? void 0 : _d.variant;
85
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material5.CardHeader, {
91
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_CardHeader.default, {
86
92
  ...rest,
87
93
  titleTypographyProps: {
88
94
  variant: titleVariant,
@@ -93,10 +99,10 @@ var CardHeader = ({
93
99
  };
94
100
 
95
101
  // src/lib/CardMedia.tsx
96
- var import_material6 = require("@mui/material");
102
+ var import_CardMedia = __toESM(require("@mui/material/CardMedia"));
97
103
  var import_jsx_runtime = require("react/jsx-runtime");
98
104
  var CardMedia = ({ children, ...rest }) => {
99
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material6.CardMedia, {
105
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_CardMedia.default, {
100
106
  ...rest,
101
107
  children
102
108
  });
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  // src/lib/Card.tsx
2
- import { Card as MuiCard } from "@mui/material";
2
+ import { default as MuiCard } from "@mui/material/Card";
3
3
  import { jsx } from "react/jsx-runtime";
4
4
  var Card = ({ children, ...rest }) => {
5
5
  return /* @__PURE__ */ jsx(MuiCard, {
@@ -9,7 +9,9 @@ var Card = ({ children, ...rest }) => {
9
9
  };
10
10
 
11
11
  // src/lib/CardActionArea.tsx
12
- import { CardActionArea as MuiCardActionArea } from "@mui/material";
12
+ import {
13
+ default as MuiCardActionArea
14
+ } from "@mui/material/CardActionArea";
13
15
  import { jsx as jsx2 } from "react/jsx-runtime";
14
16
  var CardActionArea = ({ children, ...rest }) => {
15
17
  return /* @__PURE__ */ jsx2(MuiCardActionArea, {
@@ -20,7 +22,7 @@ var CardActionArea = ({ children, ...rest }) => {
20
22
  };
21
23
 
22
24
  // src/lib/CardActions.tsx
23
- import { CardActions as MuiCardActions } from "@mui/material";
25
+ import { default as MuiCardActions } from "@mui/material/CardActions";
24
26
  import { jsx as jsx3 } from "react/jsx-runtime";
25
27
  var CardActions = ({ children, ...rest }) => {
26
28
  return /* @__PURE__ */ jsx3(MuiCardActions, {
@@ -30,7 +32,7 @@ var CardActions = ({ children, ...rest }) => {
30
32
  };
31
33
 
32
34
  // src/lib/CardContent.tsx
33
- import { CardContent as MuiCardContent } from "@mui/material";
35
+ import { default as MuiCardContent } from "@mui/material/CardContent";
34
36
  import { jsx as jsx4 } from "react/jsx-runtime";
35
37
  var CardContent = ({ children, ...rest }) => {
36
38
  return /* @__PURE__ */ jsx4(MuiCardContent, {
@@ -41,7 +43,7 @@ var CardContent = ({ children, ...rest }) => {
41
43
 
42
44
  // src/lib/CardHeader.tsx
43
45
  import { useTheme } from "@mui/material/styles";
44
- import { CardHeader as MuiCardHeader } from "@mui/material";
46
+ import { default as MuiCardHeader } from "@mui/material/CardHeader";
45
47
  import { jsx as jsx5 } from "react/jsx-runtime";
46
48
  var CardHeader = ({
47
49
  titleTypographyProps,
@@ -62,7 +64,7 @@ var CardHeader = ({
62
64
  };
63
65
 
64
66
  // src/lib/CardMedia.tsx
65
- import { CardMedia as MuiCardMedia } from "@mui/material";
67
+ import { default as MuiCardMedia } from "@mui/material/CardMedia";
66
68
  import { jsx as jsx6 } from "react/jsx-runtime";
67
69
  var CardMedia = ({ children, ...rest }) => {
68
70
  return /* @__PURE__ */ jsx6(MuiCardMedia, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@availity/mui-card",
3
- "version": "0.2.11",
3
+ "version": "0.2.13",
4
4
  "description": "Availity MUI Card Component - part of the @availity/element design system",
5
5
  "keywords": [
6
6
  "react",
@@ -32,8 +32,8 @@
32
32
  "publish:canary": "yarn npm publish --access public --tag canary"
33
33
  },
34
34
  "devDependencies": {
35
- "@availity/mui-button": "^0.6.4",
36
- "@availity/mui-icon": "^0.8.0",
35
+ "@availity/mui-button": "^0.6.6",
36
+ "@availity/mui-icon": "^0.8.1",
37
37
  "@mui/material": "^5.14.12",
38
38
  "react": "18.2.0",
39
39
  "react-dom": "18.2.0",
package/src/lib/Card.tsx CHANGED
@@ -1,4 +1,4 @@
1
- import { Card as MuiCard, CardProps as MuiCardProps } from '@mui/material';
1
+ import { default as MuiCard, CardProps as MuiCardProps } from '@mui/material/Card';
2
2
 
3
3
  export interface CardProps extends Omit<MuiCardProps, 'elevation' | 'variant' | 'raised' | 'square'> {
4
4
  children?: React.ReactNode;
@@ -1,4 +1,7 @@
1
- import { CardActionArea as MuiCardActionArea, CardActionAreaProps as MuiCardActionAreaProps } from '@mui/material';
1
+ import {
2
+ default as MuiCardActionArea,
3
+ CardActionAreaProps as MuiCardActionAreaProps,
4
+ } from '@mui/material/CardActionArea';
2
5
 
3
6
  export interface CardActionAreaProps
4
7
  extends Omit<
@@ -1,4 +1,4 @@
1
- import { CardActions as MuiCardActions, CardActionsProps as MuiCardActionsProps } from '@mui/material';
1
+ import { default as MuiCardActions, CardActionsProps as MuiCardActionsProps } from '@mui/material/CardActions';
2
2
 
3
3
  export interface CardActionsProps extends MuiCardActionsProps {
4
4
  children?: React.ReactNode;
@@ -1,4 +1,4 @@
1
- import { CardContent as MuiCardContent, CardContentProps as MuiCardContentProps } from '@mui/material';
1
+ import { default as MuiCardContent, CardContentProps as MuiCardContentProps } from '@mui/material/CardContent';
2
2
 
3
3
  export interface CardContentProps extends MuiCardContentProps {
4
4
  children?: React.ReactNode;
@@ -1,5 +1,5 @@
1
1
  import { useTheme } from '@mui/material/styles';
2
- import { CardHeader as MuiCardHeader, CardHeaderProps as MuiCardHeaderProps } from '@mui/material';
2
+ import { default as MuiCardHeader, CardHeaderProps as MuiCardHeaderProps } from '@mui/material/CardHeader';
3
3
 
4
4
  export interface CardHeaderProps extends Omit<MuiCardHeaderProps, 'avatar'> {
5
5
  children?: React.ReactNode;
@@ -1,4 +1,4 @@
1
- import { CardMedia as MuiCardMedia, CardMediaProps as MuiCardMediaProps } from '@mui/material';
1
+ import { default as MuiCardMedia, CardMediaProps as MuiCardMediaProps } from '@mui/material/CardMedia';
2
2
 
3
3
  export interface CardMediaProps extends MuiCardMediaProps {
4
4
  children?: React.ReactNode;