@availity/mui-progress 1.0.3 → 1.0.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 +7 -0
- package/dist/index.js +7 -15
- package/dist/index.mjs +6 -14
- package/package.json +5 -4
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [1.0.4](https://github.com/Availity/element/compare/@availity/mui-progress@1.0.3...@availity/mui-progress@1.0.4) (2025-10-30)
|
|
6
|
+
|
|
7
|
+
### Dependency Updates
|
|
8
|
+
|
|
9
|
+
* `mui-icon` updated to version `1.0.3`
|
|
10
|
+
* `mui-typography` updated to version `1.0.3`
|
|
11
|
+
* `mui-layout` updated to version `1.0.3`
|
|
5
12
|
## [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
13
|
|
|
7
14
|
### Dependency Updates
|
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
|
|
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,
|
|
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
|
|
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,
|
|
160
|
-
/* @__PURE__ */ (0,
|
|
161
|
-
value === 100 && /* @__PURE__ */ (0,
|
|
162
|
-
!hidePercentage && /* @__PURE__ */ (0,
|
|
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
|
|
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__ */
|
|
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
|
|
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__ */
|
|
129
|
-
value === 100 && /* @__PURE__ */
|
|
130
|
-
!hidePercentage && /* @__PURE__ */
|
|
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
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "Availity MUI Progress Component - part of the @availity/element design system",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -54,7 +54,8 @@
|
|
|
54
54
|
"access": "public"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@availity/mui-icon": "^1.1.
|
|
58
|
-
"@availity/mui-typography": "^1.0.
|
|
59
|
-
}
|
|
57
|
+
"@availity/mui-icon": "^1.1.1",
|
|
58
|
+
"@availity/mui-typography": "^1.0.3"
|
|
59
|
+
},
|
|
60
|
+
"sideEffects": false
|
|
60
61
|
}
|