@availity/mui-page-header 0.2.25 → 0.2.26

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,21 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [0.2.26](https://github.com/Availity/element/compare/@availity/mui-page-header@0.2.25...@availity/mui-page-header@0.2.26) (2024-04-04)
6
+
7
+ ### Dependency Updates
8
+
9
+ * `mui-feedback` updated to version `0.1.24`
10
+ * `mui-breadcrumbs` updated to version `0.2.5`
11
+ * `mui-button` updated to version `0.6.5`
12
+ * `mui-divider` updated to version `0.3.6`
13
+ * `mui-link` updated to version `0.2.8`
14
+ * `mui-typography` updated to version `0.1.7`
15
+
16
+ ### Performance Improvements
17
+
18
+ * **mui-page-header:** use path imports for material deps ([11f9c9e](https://github.com/Availity/element/commit/11f9c9e0e573e4cf81b8e70064066580ef41056f))
19
+
5
20
  ## [0.2.25](https://github.com/Availity/element/compare/@availity/mui-page-header@0.2.24...@availity/mui-page-header@0.2.25) (2024-03-22)
6
21
 
7
22
  ### Dependency Updates
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
@@ -25,7 +31,8 @@ __export(src_exports, {
25
31
  module.exports = __toCommonJS(src_exports);
26
32
 
27
33
  // src/lib/PageHeader.tsx
28
- var import_material = require("@mui/material");
34
+ var import_Container = __toESM(require("@mui/material/Container"));
35
+ var import_Grid = __toESM(require("@mui/material/Grid"));
29
36
  var import_mui_divider = require("@availity/mui-divider");
30
37
  var import_mui_typography = require("@availity/mui-typography");
31
38
  var import_mui_breadcrumbs = require("@availity/mui-breadcrumbs");
@@ -41,27 +48,27 @@ var PageHeader = ({
41
48
  helpAppName,
42
49
  helpLink
43
50
  }) => {
44
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.Grid, {
45
- component: import_material.Container,
51
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_Grid.default, {
52
+ component: import_Container.default,
46
53
  container: true,
47
54
  direction: "column",
48
55
  marginTop: "1rem",
49
56
  marginBottom: "1.25rem",
50
57
  children: [
51
- breadcrumbs || helpLink ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.Grid, {
58
+ breadcrumbs || helpLink ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_Grid.default, {
52
59
  direction: "row",
53
60
  item: true,
54
61
  container: true,
55
62
  justifyContent: "space-between",
56
63
  marginBottom: 4,
57
64
  children: [
58
- breadcrumbs && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Grid, {
65
+ breadcrumbs && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Grid.default, {
59
66
  item: true,
60
67
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_mui_breadcrumbs.Breadcrumbs, {
61
68
  ...breadcrumbs
62
69
  })
63
70
  }),
64
- helpLink && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Grid, {
71
+ helpLink && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Grid.default, {
65
72
  item: true,
66
73
  marginLeft: 2,
67
74
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_mui_typography.Typography, {
@@ -80,7 +87,7 @@ var PageHeader = ({
80
87
  })
81
88
  ]
82
89
  }) : null,
83
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.Grid, {
90
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_Grid.default, {
84
91
  direction: "row",
85
92
  item: true,
86
93
  container: true,
@@ -88,19 +95,19 @@ var PageHeader = ({
88
95
  alignItems: "center",
89
96
  justifyContent: "space-between",
90
97
  children: [
91
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Grid, {
98
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Grid.default, {
92
99
  item: true,
93
100
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_mui_typography.Typography, {
94
101
  variant: "h1",
95
102
  children: headerText
96
103
  })
97
104
  }),
98
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.Grid, {
105
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_Grid.default, {
99
106
  item: true,
100
107
  container: true,
101
108
  width: "auto",
102
109
  children: [
103
- buttons && buttons.length > 0 && (buttons == null ? void 0 : buttons.map((buttonProps) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Grid, {
110
+ buttons && buttons.length > 0 && (buttons == null ? void 0 : buttons.map((buttonProps) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Grid.default, {
104
111
  item: true,
105
112
  marginLeft: 2,
106
113
  height: "100%",
@@ -110,7 +117,7 @@ var PageHeader = ({
110
117
  color: "secondary"
111
118
  })
112
119
  }))),
113
- feedback ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Grid, {
120
+ feedback ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Grid.default, {
114
121
  item: true,
115
122
  marginLeft: 2,
116
123
  height: "100%",
package/dist/index.mjs CHANGED
@@ -1,5 +1,6 @@
1
1
  // src/lib/PageHeader.tsx
2
- import { Container, Grid } from "@mui/material";
2
+ import Container from "@mui/material/Container";
3
+ import Grid from "@mui/material/Grid";
3
4
  import { Divider } from "@availity/mui-divider";
4
5
  import { Typography } from "@availity/mui-typography";
5
6
  import { Breadcrumbs } from "@availity/mui-breadcrumbs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@availity/mui-page-header",
3
- "version": "0.2.25",
3
+ "version": "0.2.26",
4
4
  "description": "Availity MUI PageHeader Component - part of the @availity/element design system",
5
5
  "keywords": [
6
6
  "react",
@@ -32,11 +32,11 @@
32
32
  "publish:canary": "yarn npm publish --access public --tag canary"
33
33
  },
34
34
  "devDependencies": {
35
- "@availity/mui-breadcrumbs": "^0.2.4",
36
- "@availity/mui-button": "^0.6.4",
37
- "@availity/mui-divider": "^0.3.5",
38
- "@availity/mui-link": "^0.2.7",
39
- "@availity/mui-typography": "^0.1.6",
35
+ "@availity/mui-breadcrumbs": "^0.2.5",
36
+ "@availity/mui-button": "^0.6.5",
37
+ "@availity/mui-divider": "^0.3.6",
38
+ "@availity/mui-link": "^0.2.8",
39
+ "@availity/mui-typography": "^0.1.7",
40
40
  "@mui/material": "^5.14.12",
41
41
  "react": "18.2.0",
42
42
  "react-dom": "18.2.0",
@@ -44,11 +44,11 @@
44
44
  "typescript": "^4.6.4"
45
45
  },
46
46
  "peerDependencies": {
47
- "@availity/mui-breadcrumbs": "^0.2.4",
48
- "@availity/mui-button": "^0.6.4",
49
- "@availity/mui-divider": "^0.3.5",
50
- "@availity/mui-link": "^0.2.7",
51
- "@availity/mui-typography": "^0.1.6",
47
+ "@availity/mui-breadcrumbs": "^0.2.5",
48
+ "@availity/mui-button": "^0.6.5",
49
+ "@availity/mui-divider": "^0.3.6",
50
+ "@availity/mui-link": "^0.2.8",
51
+ "@availity/mui-typography": "^0.1.7",
52
52
  "@mui/material": "^5.11.9",
53
53
  "react": ">=16.3.0"
54
54
  },
@@ -56,6 +56,6 @@
56
56
  "access": "public"
57
57
  },
58
58
  "dependencies": {
59
- "@availity/mui-feedback": "^0.1.23"
59
+ "@availity/mui-feedback": "^0.1.24"
60
60
  }
61
61
  }
@@ -1,4 +1,5 @@
1
- import { Container, Grid } from '@mui/material';
1
+ import Container from '@mui/material/Container';
2
+ import Grid from '@mui/material/Grid';
2
3
  import { Divider } from '@availity/mui-divider';
3
4
  import { Typography } from '@availity/mui-typography';
4
5
  import { Breadcrumbs, BreadcrumbsProps } from '@availity/mui-breadcrumbs';