@availity/mui-progress 1.0.3 → 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,31 @@
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-progress@1.0.4...@availity/mui-progress@2.0.0) (2025-11-17)
6
+
7
+ ### Dependency Updates
8
+
9
+ * `mui-icon` updated to version `1.0.4`
10
+ * `mui-typography` updated to version `1.0.4`
11
+ * `mui-layout` updated to version `1.0.4`
12
+
13
+ ### ⚠ BREAKING CHANGES
14
+
15
+ * @mui/material upgraded to v7
16
+ * @mui/x-* upgraded to v8
17
+ * react upgraded to v19
18
+
19
+ ### Features
20
+
21
+ * upgrade material and react dependencies ([51602a4](https://github.com/Availity/element/commit/51602a48c5304db6f61e2c7e772c9a3a4aa3f65c))
22
+
23
+ ## [1.0.4](https://github.com/Availity/element/compare/@availity/mui-progress@1.0.3...@availity/mui-progress@1.0.4) (2025-10-30)
24
+
25
+ ### Dependency Updates
26
+
27
+ * `mui-icon` updated to version `1.0.3`
28
+ * `mui-typography` updated to version `1.0.3`
29
+ * `mui-layout` updated to version `1.0.3`
5
30
  ## [1.0.3](https://github.com/Availity/element/compare/@availity/mui-progress@1.0.2...@availity/mui-progress@1.0.3) (2025-04-30)
6
31
 
7
32
  ### Dependency Updates
package/dist/index.d.mts CHANGED
@@ -26,7 +26,7 @@ type StatusIconProps = {
26
26
  status: string;
27
27
  size: 'default' | 'small';
28
28
  };
29
- declare const CircularProgress: ({ loadingCaption, error, success, size, ...props }: CircularProgressProps) => JSX.Element;
29
+ declare const CircularProgress: ({ loadingCaption, error, success, size, ...props }: CircularProgressProps) => React.JSX.Element;
30
30
 
31
31
  type LinearProgressProps = Omit<LinearProgressProps$1, 'color'> & {
32
32
  hidePercentage?: boolean;
package/dist/index.d.ts CHANGED
@@ -26,7 +26,7 @@ type StatusIconProps = {
26
26
  status: string;
27
27
  size: 'default' | 'small';
28
28
  };
29
- declare const CircularProgress: ({ loadingCaption, error, success, size, ...props }: CircularProgressProps) => JSX.Element;
29
+ declare const CircularProgress: ({ loadingCaption, error, success, size, ...props }: CircularProgressProps) => React.JSX.Element;
30
30
 
31
31
  type LinearProgressProps = Omit<LinearProgressProps$1, 'color'> & {
32
32
  hidePercentage?: boolean;
package/dist/index.js CHANGED
@@ -134,32 +134,24 @@ var Box = (0, import_react2.forwardRef)((props, ref) => {
134
134
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_Box.default, __spreadProps(__spreadValues({}, props), { ref }));
135
135
  });
136
136
 
137
- // ../layout/src/lib/Container.tsx
138
- var import_Container = __toESM(require("@mui/material/Container"));
139
- var import_jsx_runtime3 = require("react/jsx-runtime");
140
-
141
- // ../layout/src/lib/Grid.tsx
142
- var import_Grid2 = __toESM(require("@mui/material/Grid2"));
143
- var import_jsx_runtime4 = require("react/jsx-runtime");
144
-
145
137
  // ../layout/src/lib/Stack.tsx
146
138
  var import_Stack2 = __toESM(require("@mui/material/Stack"));
147
- var import_jsx_runtime5 = require("react/jsx-runtime");
139
+ var import_jsx_runtime3 = require("react/jsx-runtime");
148
140
  var Stack2 = (_a) => {
149
141
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
150
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_Stack2.default, __spreadProps(__spreadValues({}, rest), { children }));
142
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_Stack2.default, __spreadProps(__spreadValues({}, rest), { children }));
151
143
  };
152
144
 
153
145
  // src/lib/LinearProgress.tsx
154
146
  var import_mui_typography2 = require("@availity/mui-typography");
155
147
  var import_LinearProgress = __toESM(require("@mui/material/LinearProgress"));
156
- var import_jsx_runtime6 = require("react/jsx-runtime");
148
+ var import_jsx_runtime4 = require("react/jsx-runtime");
157
149
  var LinearProgress = (_a) => {
158
150
  var _b = _a, { variant = "determinate", value = 0, sx, hidePercentage = false } = _b, props = __objRest(_b, ["variant", "value", "sx", "hidePercentage"]);
159
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(Stack2, { direction: "row", sx: { alignItems: "center" }, children: [
160
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Box, { sx: { width: "100%", mr: 0.5 }, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_LinearProgress.default, __spreadProps(__spreadValues({ variant }, props), { value, color: "success", sx: __spreadValues({ width: "100%" }, sx) })) }),
161
- value === 100 && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_mui_icon2.SuccessCircleIcon, { color: "success", "data-icon": "complete" }),
162
- !hidePercentage && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_mui_typography2.Typography, { variant: "body2", sx: { color: "text.secondary", ml: 1 }, children: `${Math.round(value)}%` })
151
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(Stack2, { direction: "row", sx: { alignItems: "center" }, children: [
152
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Box, { sx: { width: "100%", mr: 0.5 }, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_LinearProgress.default, __spreadProps(__spreadValues({ variant }, props), { value, color: "success", sx: __spreadValues({ width: "100%" }, sx) })) }),
153
+ value === 100 && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_mui_icon2.SuccessCircleIcon, { color: "success", "data-icon": "complete" }),
154
+ !hidePercentage && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_mui_typography2.Typography, { variant: "body2", sx: { color: "text.secondary", ml: 1 }, children: `${Math.round(value)}%` })
163
155
  ] });
164
156
  };
165
157
  // Annotate the CommonJS export names for ESM import in node:
package/dist/index.mjs CHANGED
@@ -102,32 +102,24 @@ var Box = forwardRef((props, ref) => {
102
102
  return /* @__PURE__ */ jsx2(MuiBox, __spreadProps(__spreadValues({}, props), { ref }));
103
103
  });
104
104
 
105
- // ../layout/src/lib/Container.tsx
106
- import MuiContainer from "@mui/material/Container";
107
- import { jsx as jsx3 } from "react/jsx-runtime";
108
-
109
- // ../layout/src/lib/Grid.tsx
110
- import MuiGrid2 from "@mui/material/Grid2";
111
- import { jsx as jsx4 } from "react/jsx-runtime";
112
-
113
105
  // ../layout/src/lib/Stack.tsx
114
106
  import MuiStack from "@mui/material/Stack";
115
- import { jsx as jsx5 } from "react/jsx-runtime";
107
+ import { jsx as jsx3 } from "react/jsx-runtime";
116
108
  var Stack2 = (_a) => {
117
109
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
118
- return /* @__PURE__ */ jsx5(MuiStack, __spreadProps(__spreadValues({}, rest), { children }));
110
+ return /* @__PURE__ */ jsx3(MuiStack, __spreadProps(__spreadValues({}, rest), { children }));
119
111
  };
120
112
 
121
113
  // src/lib/LinearProgress.tsx
122
114
  import { Typography as Typography2 } from "@availity/mui-typography";
123
115
  import MuiLinearProgress from "@mui/material/LinearProgress";
124
- import { jsx as jsx6, jsxs as jsxs2 } from "react/jsx-runtime";
116
+ import { jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
125
117
  var LinearProgress = (_a) => {
126
118
  var _b = _a, { variant = "determinate", value = 0, sx, hidePercentage = false } = _b, props = __objRest(_b, ["variant", "value", "sx", "hidePercentage"]);
127
119
  return /* @__PURE__ */ jsxs2(Stack2, { direction: "row", sx: { alignItems: "center" }, children: [
128
- /* @__PURE__ */ jsx6(Box, { sx: { width: "100%", mr: 0.5 }, children: /* @__PURE__ */ jsx6(MuiLinearProgress, __spreadProps(__spreadValues({ variant }, props), { value, color: "success", sx: __spreadValues({ width: "100%" }, sx) })) }),
129
- value === 100 && /* @__PURE__ */ jsx6(SuccessCircleIcon2, { color: "success", "data-icon": "complete" }),
130
- !hidePercentage && /* @__PURE__ */ jsx6(Typography2, { variant: "body2", sx: { color: "text.secondary", ml: 1 }, children: `${Math.round(value)}%` })
120
+ /* @__PURE__ */ jsx4(Box, { sx: { width: "100%", mr: 0.5 }, children: /* @__PURE__ */ jsx4(MuiLinearProgress, __spreadProps(__spreadValues({ variant }, props), { value, color: "success", sx: __spreadValues({ width: "100%" }, sx) })) }),
121
+ value === 100 && /* @__PURE__ */ jsx4(SuccessCircleIcon2, { color: "success", "data-icon": "complete" }),
122
+ !hidePercentage && /* @__PURE__ */ jsx4(Typography2, { variant: "body2", sx: { color: "text.secondary", ml: 1 }, children: `${Math.round(value)}%` })
131
123
  ] });
132
124
  };
133
125
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@availity/mui-progress",
3
- "version": "1.0.3",
3
+ "version": "2.0.0",
4
4
  "description": "Availity MUI Progress Component - part of the @availity/element design system",
5
5
  "keywords": [
6
6
  "react",
@@ -40,21 +40,22 @@
40
40
  "publish:canary": "yarn npm publish --access public --tag canary"
41
41
  },
42
42
  "devDependencies": {
43
- "@mui/material": "^6.4.5",
44
- "react": "18.2.0",
45
- "react-dom": "18.2.0",
43
+ "@mui/material": "^7.3.4",
44
+ "react": "19.2.0",
45
+ "react-dom": "19.2.0",
46
46
  "tsup": "^8.4.0",
47
47
  "typescript": "^5.4.5"
48
48
  },
49
49
  "peerDependencies": {
50
- "@mui/material": "^6.4.5",
51
- "react": ">=16.3.0"
50
+ "@mui/material": "^7.0.0",
51
+ "react": ">=17.0.0"
52
52
  },
53
53
  "publishConfig": {
54
54
  "access": "public"
55
55
  },
56
56
  "dependencies": {
57
- "@availity/mui-icon": "^1.1.0",
58
- "@availity/mui-typography": "^1.0.2"
59
- }
57
+ "@availity/mui-icon": "^2.0.0",
58
+ "@availity/mui-typography": "^2.0.0"
59
+ },
60
+ "sideEffects": false
60
61
  }
@@ -60,7 +60,7 @@ export const CircularProgress = ({
60
60
  success = false,
61
61
  size = 'default',
62
62
  ...props
63
- }: CircularProgressProps): JSX.Element => {
63
+ }: CircularProgressProps): React.JSX.Element => {
64
64
  const [status, setStatus] = useState('loading');
65
65
 
66
66
  useEffect(() => {