@availity/mui-card 0.1.2 → 0.1.4

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,15 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [0.1.4](https://github.com/Availity/element/compare/@availity/mui-card@0.1.3...@availity/mui-card@0.1.4) (2023-08-23)
6
+
7
+ ## [0.1.3](https://github.com/Availity/element/compare/@availity/mui-card@0.1.2...@availity/mui-card@0.1.3) (2023-08-22)
8
+
9
+
10
+ ### Bug Fixes
11
+
12
+ * **mui-card:** export subcomponents ([7e6c64c](https://github.com/Availity/element/commit/7e6c64c3a22a20213962434b059a7096ce51899c))
13
+
5
14
  ## [0.1.2](https://github.com/Availity/element/compare/@availity/mui-card@0.1.1...@availity/mui-card@0.1.2) (2023-08-16)
6
15
 
7
16
 
package/dist/index.d.ts CHANGED
@@ -1,8 +1,33 @@
1
- import { CardProps as CardProps$1 } from '@mui/material';
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';
2
2
 
3
3
  interface CardProps extends Omit<CardProps$1, 'elevation' | 'variant' | 'raised' | 'square'> {
4
4
  children?: React.ReactNode;
5
5
  }
6
6
  declare const Card: ({ children, ...rest }: CardProps) => JSX.Element;
7
7
 
8
- export { Card, CardProps };
8
+ interface CardActionAreaProps extends Omit<CardActionAreaProps$1, 'centerRipple' | 'disableRipple' | 'disableTouchRipple' | 'focusRipple' | 'TouchRippleProps' | 'touchRippleRef'> {
9
+ children?: React.ReactNode;
10
+ }
11
+ declare const CardActionArea: ({ children, ...rest }: CardActionAreaProps) => JSX.Element;
12
+
13
+ interface CardActionsProps extends CardActionsProps$1 {
14
+ children?: React.ReactNode;
15
+ }
16
+ declare const CardActions: ({ children, ...rest }: CardActionsProps) => JSX.Element;
17
+
18
+ interface CardContentProps extends CardContentProps$1 {
19
+ children?: React.ReactNode;
20
+ }
21
+ declare const CardContent: ({ children, ...rest }: CardContentProps) => JSX.Element;
22
+
23
+ interface CardHeaderProps extends Omit<CardHeaderProps$1, 'avatar'> {
24
+ children?: React.ReactNode;
25
+ }
26
+ declare const CardHeader: ({ ...rest }: CardHeaderProps) => JSX.Element;
27
+
28
+ interface CardMediaProps extends CardMediaProps$1 {
29
+ children?: React.ReactNode;
30
+ }
31
+ declare const CardMedia: ({ children, ...rest }: CardMediaProps) => JSX.Element;
32
+
33
+ export { Card, CardActionArea, CardActionAreaProps, CardActions, CardActionsProps, CardContent, CardContentProps, CardHeader, CardHeaderProps, CardMedia, CardMediaProps, CardProps };
package/dist/index.js CHANGED
@@ -20,7 +20,12 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // src/index.ts
21
21
  var src_exports = {};
22
22
  __export(src_exports, {
23
- Card: () => Card
23
+ Card: () => Card,
24
+ CardActionArea: () => CardActionArea,
25
+ CardActions: () => CardActions,
26
+ CardContent: () => CardContent,
27
+ CardHeader: () => CardHeader,
28
+ CardMedia: () => CardMedia
24
29
  });
25
30
  module.exports = __toCommonJS(src_exports);
26
31
 
@@ -35,7 +40,64 @@ var Card = ({ children, ...rest }) => {
35
40
  children
36
41
  });
37
42
  };
43
+
44
+ // src/lib/CardActionArea.tsx
45
+ var import_material2 = require("@mui/material");
46
+ var import_jsx_runtime = require("react/jsx-runtime");
47
+ var CardActionArea = ({ children, ...rest }) => {
48
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material2.CardActionArea, {
49
+ ...rest,
50
+ disableRipple: true,
51
+ children
52
+ });
53
+ };
54
+
55
+ // src/lib/CardActions.tsx
56
+ var import_material3 = require("@mui/material");
57
+ var import_jsx_runtime = require("react/jsx-runtime");
58
+ var CardActions = ({ children, ...rest }) => {
59
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material3.CardActions, {
60
+ ...rest,
61
+ children
62
+ });
63
+ };
64
+
65
+ // src/lib/CardContent.tsx
66
+ var import_material4 = require("@mui/material");
67
+ var import_jsx_runtime = require("react/jsx-runtime");
68
+ var CardContent = ({ children, ...rest }) => {
69
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material4.CardContent, {
70
+ ...rest,
71
+ children
72
+ });
73
+ };
74
+
75
+ // src/lib/CardHeader.tsx
76
+ var import_material5 = require("@mui/material");
77
+ var import_jsx_runtime = require("react/jsx-runtime");
78
+ var CardHeader = ({ ...rest }) => {
79
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material5.CardHeader, {
80
+ ...rest,
81
+ titleTypographyProps: { variant: "h6" },
82
+ subheaderTypographyProps: { variant: "subtitle2" }
83
+ });
84
+ };
85
+
86
+ // src/lib/CardMedia.tsx
87
+ var import_material6 = require("@mui/material");
88
+ var import_jsx_runtime = require("react/jsx-runtime");
89
+ var CardMedia = ({ children, ...rest }) => {
90
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material6.CardMedia, {
91
+ ...rest,
92
+ children
93
+ });
94
+ };
38
95
  // Annotate the CommonJS export names for ESM import in node:
39
96
  0 && (module.exports = {
40
- Card
97
+ Card,
98
+ CardActionArea,
99
+ CardActions,
100
+ CardContent,
101
+ CardHeader,
102
+ CardMedia
41
103
  });
package/dist/index.mjs CHANGED
@@ -9,6 +9,63 @@ var Card = ({ children, ...rest }) => {
9
9
  children
10
10
  });
11
11
  };
12
+
13
+ // src/lib/CardActionArea.tsx
14
+ import { CardActionArea as MuiCardActionArea } from "@mui/material";
15
+ import { jsx as jsx2 } from "react/jsx-runtime";
16
+ var CardActionArea = ({ children, ...rest }) => {
17
+ return /* @__PURE__ */ jsx2(MuiCardActionArea, {
18
+ ...rest,
19
+ disableRipple: true,
20
+ children
21
+ });
22
+ };
23
+
24
+ // src/lib/CardActions.tsx
25
+ import { CardActions as MuiCardActions } from "@mui/material";
26
+ import { jsx as jsx3 } from "react/jsx-runtime";
27
+ var CardActions = ({ children, ...rest }) => {
28
+ return /* @__PURE__ */ jsx3(MuiCardActions, {
29
+ ...rest,
30
+ children
31
+ });
32
+ };
33
+
34
+ // src/lib/CardContent.tsx
35
+ import { CardContent as MuiCardContent } from "@mui/material";
36
+ import { jsx as jsx4 } from "react/jsx-runtime";
37
+ var CardContent = ({ children, ...rest }) => {
38
+ return /* @__PURE__ */ jsx4(MuiCardContent, {
39
+ ...rest,
40
+ children
41
+ });
42
+ };
43
+
44
+ // src/lib/CardHeader.tsx
45
+ import { CardHeader as MuiCardHeader } from "@mui/material";
46
+ import { jsx as jsx5 } from "react/jsx-runtime";
47
+ var CardHeader = ({ ...rest }) => {
48
+ return /* @__PURE__ */ jsx5(MuiCardHeader, {
49
+ ...rest,
50
+ titleTypographyProps: { variant: "h6" },
51
+ subheaderTypographyProps: { variant: "subtitle2" }
52
+ });
53
+ };
54
+
55
+ // src/lib/CardMedia.tsx
56
+ import { CardMedia as MuiCardMedia } from "@mui/material";
57
+ import { jsx as jsx6 } from "react/jsx-runtime";
58
+ var CardMedia = ({ children, ...rest }) => {
59
+ return /* @__PURE__ */ jsx6(MuiCardMedia, {
60
+ ...rest,
61
+ children
62
+ });
63
+ };
12
64
  export {
13
- Card
65
+ Card,
66
+ CardActionArea,
67
+ CardActions,
68
+ CardContent,
69
+ CardHeader,
70
+ CardMedia
14
71
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@availity/mui-card",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "Availity MUI Card Component - part of the @availity/element design system",
5
5
  "keywords": [
6
6
  "react",
@@ -33,8 +33,8 @@
33
33
  "publish:canary": "yarn npm publish --access public --tag canary"
34
34
  },
35
35
  "devDependencies": {
36
- "@availity/mui-button": "^0.3.0",
37
- "@availity/mui-icon": "^0.4.0",
36
+ "@availity/mui-button": "^0.3.1",
37
+ "@availity/mui-icon": "^0.4.1",
38
38
  "@mui/material": "^5.11.9",
39
39
  "react": "18.2.0",
40
40
  "react-dom": "18.2.0",
package/project.json CHANGED
@@ -37,5 +37,6 @@
37
37
  "tagPrefix": "@availity/${projectName}@"
38
38
  }
39
39
  }
40
- }
40
+ },
41
+ "trackDeps": true
41
42
  }
package/src/index.ts CHANGED
@@ -1 +1,6 @@
1
1
  export * from './lib/Card';
2
+ export * from './lib/CardActionArea';
3
+ export * from './lib/CardActions';
4
+ export * from './lib/CardContent';
5
+ export * from './lib/CardHeader';
6
+ export * from './lib/CardMedia';