@availity/mui-stepper 0.4.0 → 1.0.0-alpha.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 +14 -0
- package/dist/index.js +246 -200
- package/dist/index.mjs +226 -180
- package/package.json +10 -9
- package/src/lib/Step.stories.tsx +1 -1
- package/src/lib/StepButton.stories.tsx +1 -1
- package/src/lib/StepLabel.stories.tsx +4 -2
- package/src/lib/Stepper.stories.tsx +1 -1
- /package/{introduction.stories.mdx → introduction.mdx} +0 -0
package/dist/index.js
CHANGED
|
@@ -59,9 +59,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
59
59
|
));
|
|
60
60
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
61
61
|
|
|
62
|
-
// ../../node_modules/
|
|
62
|
+
// ../../node_modules/react-is/cjs/react-is.production.min.js
|
|
63
63
|
var require_react_is_production_min = __commonJS({
|
|
64
|
-
"../../node_modules/
|
|
64
|
+
"../../node_modules/react-is/cjs/react-is.production.min.js"(exports2) {
|
|
65
65
|
"use strict";
|
|
66
66
|
var b = "function" === typeof Symbol && Symbol.for;
|
|
67
67
|
var c = b ? Symbol.for("react.element") : 60103;
|
|
@@ -172,9 +172,9 @@ var require_react_is_production_min = __commonJS({
|
|
|
172
172
|
}
|
|
173
173
|
});
|
|
174
174
|
|
|
175
|
-
// ../../node_modules/
|
|
175
|
+
// ../../node_modules/react-is/cjs/react-is.development.js
|
|
176
176
|
var require_react_is_development = __commonJS({
|
|
177
|
-
"../../node_modules/
|
|
177
|
+
"../../node_modules/react-is/cjs/react-is.development.js"(exports2) {
|
|
178
178
|
"use strict";
|
|
179
179
|
if (process.env.NODE_ENV !== "production") {
|
|
180
180
|
(function() {
|
|
@@ -327,9 +327,9 @@ var require_react_is_development = __commonJS({
|
|
|
327
327
|
}
|
|
328
328
|
});
|
|
329
329
|
|
|
330
|
-
// ../../node_modules/
|
|
330
|
+
// ../../node_modules/react-is/index.js
|
|
331
331
|
var require_react_is = __commonJS({
|
|
332
|
-
"../../node_modules/
|
|
332
|
+
"../../node_modules/react-is/index.js"(exports2, module2) {
|
|
333
333
|
"use strict";
|
|
334
334
|
if (process.env.NODE_ENV === "production") {
|
|
335
335
|
module2.exports = require_react_is_production_min();
|
|
@@ -1008,8 +1008,8 @@ var require_prop_types = __commonJS({
|
|
|
1008
1008
|
});
|
|
1009
1009
|
|
|
1010
1010
|
// src/index.ts
|
|
1011
|
-
var
|
|
1012
|
-
__export(
|
|
1011
|
+
var index_exports = {};
|
|
1012
|
+
__export(index_exports, {
|
|
1013
1013
|
Step: () => Step,
|
|
1014
1014
|
StepButton: () => StepButton,
|
|
1015
1015
|
StepConnector: () => StepConnector,
|
|
@@ -1018,7 +1018,7 @@ __export(src_exports, {
|
|
|
1018
1018
|
StepLabel: () => StepLabel,
|
|
1019
1019
|
Stepper: () => Stepper
|
|
1020
1020
|
});
|
|
1021
|
-
module.exports = __toCommonJS(
|
|
1021
|
+
module.exports = __toCommonJS(index_exports);
|
|
1022
1022
|
|
|
1023
1023
|
// src/lib/Step.tsx
|
|
1024
1024
|
var import_Step = __toESM(require("@mui/material/Step"));
|
|
@@ -1058,12 +1058,9 @@ var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
|
1058
1058
|
var StepIcon = (_a) => {
|
|
1059
1059
|
var _b = _a, { error, completed, warning } = _b, rest = __objRest(_b, ["error", "completed", "warning"]);
|
|
1060
1060
|
let tag = null;
|
|
1061
|
-
if (error)
|
|
1062
|
-
|
|
1063
|
-
if (
|
|
1064
|
-
tag = (props) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_mui_icon.WarningCircleIcon, __spreadValues({ color: "warning" }, props));
|
|
1065
|
-
if (completed)
|
|
1066
|
-
tag = import_mui_icon.SuccessCircleIcon;
|
|
1061
|
+
if (error) tag = import_mui_icon.WarningCircleIcon;
|
|
1062
|
+
if (warning) tag = (props) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_mui_icon.WarningCircleIcon, __spreadValues({ color: "warning" }, props));
|
|
1063
|
+
if (completed) tag = import_mui_icon.SuccessCircleIcon;
|
|
1067
1064
|
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_StepIcon.default, __spreadProps(__spreadValues({}, rest), { error, completed, as: tag }));
|
|
1068
1065
|
};
|
|
1069
1066
|
|
|
@@ -1125,43 +1122,11 @@ var IconButton = (0, import_react2.forwardRef)((props, ref) => {
|
|
|
1125
1122
|
// ../button/src/lib/LoadingButton.tsx
|
|
1126
1123
|
var import_react3 = require("react");
|
|
1127
1124
|
|
|
1128
|
-
// ../../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
1129
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
1130
|
-
if (source == null)
|
|
1131
|
-
return {};
|
|
1132
|
-
var target = {};
|
|
1133
|
-
var sourceKeys = Object.keys(source);
|
|
1134
|
-
var key, i;
|
|
1135
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
1136
|
-
key = sourceKeys[i];
|
|
1137
|
-
if (excluded.indexOf(key) >= 0)
|
|
1138
|
-
continue;
|
|
1139
|
-
target[key] = source[key];
|
|
1140
|
-
}
|
|
1141
|
-
return target;
|
|
1142
|
-
}
|
|
1143
|
-
|
|
1144
|
-
// ../../node_modules/@babel/runtime/helpers/esm/extends.js
|
|
1145
|
-
function _extends() {
|
|
1146
|
-
_extends = Object.assign ? Object.assign.bind() : function(target) {
|
|
1147
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
1148
|
-
var source = arguments[i];
|
|
1149
|
-
for (var key in source) {
|
|
1150
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
1151
|
-
target[key] = source[key];
|
|
1152
|
-
}
|
|
1153
|
-
}
|
|
1154
|
-
}
|
|
1155
|
-
return target;
|
|
1156
|
-
};
|
|
1157
|
-
return _extends.apply(this, arguments);
|
|
1158
|
-
}
|
|
1159
|
-
|
|
1160
1125
|
// ../../node_modules/@mui/lab/LoadingButton/LoadingButton.js
|
|
1161
1126
|
var React = __toESM(require("react"));
|
|
1162
1127
|
var import_prop_types = __toESM(require_prop_types());
|
|
1163
1128
|
|
|
1164
|
-
// ../../node_modules/@mui/
|
|
1129
|
+
// ../../node_modules/@mui/utils/esm/chainPropTypes/chainPropTypes.js
|
|
1165
1130
|
function chainPropTypes(propType1, propType2) {
|
|
1166
1131
|
if (process.env.NODE_ENV === "production") {
|
|
1167
1132
|
return () => null;
|
|
@@ -1171,34 +1136,61 @@ function chainPropTypes(propType1, propType2) {
|
|
|
1171
1136
|
};
|
|
1172
1137
|
}
|
|
1173
1138
|
|
|
1174
|
-
// ../../node_modules/@mui/
|
|
1139
|
+
// ../../node_modules/@mui/utils/esm/resolveProps/resolveProps.js
|
|
1175
1140
|
function resolveProps(defaultProps, props) {
|
|
1176
|
-
const output =
|
|
1177
|
-
|
|
1178
|
-
if (
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1141
|
+
const output = __spreadValues({}, props);
|
|
1142
|
+
for (const key in defaultProps) {
|
|
1143
|
+
if (Object.prototype.hasOwnProperty.call(defaultProps, key)) {
|
|
1144
|
+
const propName = key;
|
|
1145
|
+
if (propName === "components" || propName === "slots") {
|
|
1146
|
+
output[propName] = __spreadValues(__spreadValues({}, defaultProps[propName]), output[propName]);
|
|
1147
|
+
} else if (propName === "componentsProps" || propName === "slotProps") {
|
|
1148
|
+
const defaultSlotProps = defaultProps[propName];
|
|
1149
|
+
const slotProps = props[propName];
|
|
1150
|
+
if (!slotProps) {
|
|
1151
|
+
output[propName] = defaultSlotProps || {};
|
|
1152
|
+
} else if (!defaultSlotProps) {
|
|
1153
|
+
output[propName] = slotProps;
|
|
1154
|
+
} else {
|
|
1155
|
+
output[propName] = __spreadValues({}, slotProps);
|
|
1156
|
+
for (const slotKey in defaultSlotProps) {
|
|
1157
|
+
if (Object.prototype.hasOwnProperty.call(defaultSlotProps, slotKey)) {
|
|
1158
|
+
const slotPropName = slotKey;
|
|
1159
|
+
output[propName][slotPropName] = resolveProps(defaultSlotProps[slotPropName], slotProps[slotPropName]);
|
|
1160
|
+
}
|
|
1161
|
+
}
|
|
1162
|
+
}
|
|
1163
|
+
} else if (output[propName] === void 0) {
|
|
1164
|
+
output[propName] = defaultProps[propName];
|
|
1193
1165
|
}
|
|
1194
|
-
} else if (output[propName] === void 0) {
|
|
1195
|
-
output[propName] = defaultProps[propName];
|
|
1196
1166
|
}
|
|
1197
|
-
}
|
|
1167
|
+
}
|
|
1168
|
+
return output;
|
|
1169
|
+
}
|
|
1170
|
+
|
|
1171
|
+
// ../../node_modules/@mui/utils/esm/composeClasses/composeClasses.js
|
|
1172
|
+
function composeClasses(slots, getUtilityClass, classes = void 0) {
|
|
1173
|
+
const output = {};
|
|
1174
|
+
for (const slotName in slots) {
|
|
1175
|
+
const slot = slots[slotName];
|
|
1176
|
+
let buffer = "";
|
|
1177
|
+
let start = true;
|
|
1178
|
+
for (let i = 0; i < slot.length; i += 1) {
|
|
1179
|
+
const value = slot[i];
|
|
1180
|
+
if (value) {
|
|
1181
|
+
buffer += (start === true ? "" : " ") + getUtilityClass(value);
|
|
1182
|
+
start = false;
|
|
1183
|
+
if (classes && classes[value]) {
|
|
1184
|
+
buffer += " " + classes[value];
|
|
1185
|
+
}
|
|
1186
|
+
}
|
|
1187
|
+
}
|
|
1188
|
+
output[slotName] = buffer;
|
|
1189
|
+
}
|
|
1198
1190
|
return output;
|
|
1199
1191
|
}
|
|
1200
1192
|
|
|
1201
|
-
// ../../node_modules/@mui/
|
|
1193
|
+
// ../../node_modules/@mui/utils/esm/ClassNameGenerator/ClassNameGenerator.js
|
|
1202
1194
|
var defaultGenerator = (componentName) => componentName;
|
|
1203
1195
|
var createClassNameGenerator = () => {
|
|
1204
1196
|
let generate = defaultGenerator;
|
|
@@ -1217,7 +1209,7 @@ var createClassNameGenerator = () => {
|
|
|
1217
1209
|
var ClassNameGenerator = createClassNameGenerator();
|
|
1218
1210
|
var ClassNameGenerator_default = ClassNameGenerator;
|
|
1219
1211
|
|
|
1220
|
-
// ../../node_modules/@mui/
|
|
1212
|
+
// ../../node_modules/@mui/utils/esm/generateUtilityClass/generateUtilityClass.js
|
|
1221
1213
|
var globalStateClasses = {
|
|
1222
1214
|
active: "active",
|
|
1223
1215
|
checked: "checked",
|
|
@@ -1237,7 +1229,7 @@ function generateUtilityClass(componentName, slot, globalStatePrefix = "Mui") {
|
|
|
1237
1229
|
return globalStateClass ? `${globalStatePrefix}-${globalStateClass}` : `${ClassNameGenerator_default.generate(componentName)}-${slot}`;
|
|
1238
1230
|
}
|
|
1239
1231
|
|
|
1240
|
-
// ../../node_modules/@mui/
|
|
1232
|
+
// ../../node_modules/@mui/utils/esm/generateUtilityClasses/generateUtilityClasses.js
|
|
1241
1233
|
function generateUtilityClasses(componentName, slots, globalStatePrefix = "Mui") {
|
|
1242
1234
|
const result = {};
|
|
1243
1235
|
slots.forEach((slot) => {
|
|
@@ -1248,48 +1240,23 @@ function generateUtilityClasses(componentName, slots, globalStatePrefix = "Mui")
|
|
|
1248
1240
|
|
|
1249
1241
|
// ../../node_modules/@mui/lab/LoadingButton/LoadingButton.js
|
|
1250
1242
|
var import_utils3 = require("@mui/material/utils");
|
|
1251
|
-
|
|
1252
|
-
// ../../node_modules/@mui/base/node_modules/@mui/utils/composeClasses/composeClasses.js
|
|
1253
|
-
function composeClasses(slots, getUtilityClass, classes = void 0) {
|
|
1254
|
-
const output = {};
|
|
1255
|
-
Object.keys(slots).forEach(
|
|
1256
|
-
// `Object.keys(slots)` can't be wider than `T` because we infer `T` from `slots`.
|
|
1257
|
-
// @ts-expect-error https://github.com/microsoft/TypeScript/pull/12253#issuecomment-263132208
|
|
1258
|
-
(slot) => {
|
|
1259
|
-
output[slot] = slots[slot].reduce((acc, key) => {
|
|
1260
|
-
if (key) {
|
|
1261
|
-
const utilityClass = getUtilityClass(key);
|
|
1262
|
-
if (utilityClass !== "") {
|
|
1263
|
-
acc.push(utilityClass);
|
|
1264
|
-
}
|
|
1265
|
-
if (classes && classes[key]) {
|
|
1266
|
-
acc.push(classes[key]);
|
|
1267
|
-
}
|
|
1268
|
-
}
|
|
1269
|
-
return acc;
|
|
1270
|
-
}, []).join(" ");
|
|
1271
|
-
}
|
|
1272
|
-
);
|
|
1273
|
-
return output;
|
|
1274
|
-
}
|
|
1275
|
-
|
|
1276
|
-
// ../../node_modules/@mui/lab/LoadingButton/LoadingButton.js
|
|
1277
|
-
var import_styles = require("@mui/material/styles");
|
|
1243
|
+
var import_DefaultPropsProvider = require("@mui/material/DefaultPropsProvider");
|
|
1278
1244
|
var import_Button2 = __toESM(require("@mui/material/Button"));
|
|
1279
1245
|
var import_ButtonGroup = require("@mui/material/ButtonGroup");
|
|
1280
1246
|
var import_CircularProgress = __toESM(require("@mui/material/CircularProgress"));
|
|
1281
1247
|
|
|
1248
|
+
// ../../node_modules/@mui/lab/zero-styled/index.js
|
|
1249
|
+
var import_styles = require("@mui/material/styles");
|
|
1250
|
+
|
|
1282
1251
|
// ../../node_modules/@mui/lab/LoadingButton/loadingButtonClasses.js
|
|
1283
1252
|
function getLoadingButtonUtilityClass(slot) {
|
|
1284
1253
|
return generateUtilityClass("MuiLoadingButton", slot);
|
|
1285
1254
|
}
|
|
1286
|
-
var loadingButtonClasses = generateUtilityClasses("MuiLoadingButton", ["root", "loading", "loadingIndicator", "loadingIndicatorCenter", "loadingIndicatorStart", "loadingIndicatorEnd", "endIconLoadingEnd", "startIconLoadingStart"]);
|
|
1255
|
+
var loadingButtonClasses = generateUtilityClasses("MuiLoadingButton", ["root", "label", "loading", "loadingIndicator", "loadingIndicatorCenter", "loadingIndicatorStart", "loadingIndicatorEnd", "endIconLoadingEnd", "startIconLoadingStart"]);
|
|
1287
1256
|
var loadingButtonClasses_default = loadingButtonClasses;
|
|
1288
1257
|
|
|
1289
1258
|
// ../../node_modules/@mui/lab/LoadingButton/LoadingButton.js
|
|
1290
1259
|
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
1291
|
-
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
1292
|
-
var _excluded = ["children", "disabled", "id", "loading", "loadingIndicator", "loadingPosition", "variant"];
|
|
1293
1260
|
var useUtilityClasses = (ownerState) => {
|
|
1294
1261
|
const {
|
|
1295
1262
|
loading,
|
|
@@ -1298,12 +1265,13 @@ var useUtilityClasses = (ownerState) => {
|
|
|
1298
1265
|
} = ownerState;
|
|
1299
1266
|
const slots = {
|
|
1300
1267
|
root: ["root", loading && "loading"],
|
|
1268
|
+
label: ["label"],
|
|
1301
1269
|
startIcon: [loading && `startIconLoading${(0, import_utils3.capitalize)(loadingPosition)}`],
|
|
1302
1270
|
endIcon: [loading && `endIconLoading${(0, import_utils3.capitalize)(loadingPosition)}`],
|
|
1303
1271
|
loadingIndicator: ["loadingIndicator", loading && `loadingIndicator${(0, import_utils3.capitalize)(loadingPosition)}`]
|
|
1304
1272
|
};
|
|
1305
1273
|
const composedClasses = composeClasses(slots, getLoadingButtonUtilityClass, classes);
|
|
1306
|
-
return
|
|
1274
|
+
return __spreadValues(__spreadValues({}, classes), composedClasses);
|
|
1307
1275
|
};
|
|
1308
1276
|
var rootShouldForwardProp = (prop) => prop !== "ownerState" && prop !== "theme" && prop !== "sx" && prop !== "as" && prop !== "classes";
|
|
1309
1277
|
var LoadingButtonRoot = (0, import_styles.styled)(import_Button2.default, {
|
|
@@ -1317,40 +1285,56 @@ var LoadingButtonRoot = (0, import_styles.styled)(import_Button2.default, {
|
|
|
1317
1285
|
[`& .${loadingButtonClasses_default.endIconLoadingEnd}`]: styles.endIconLoadingEnd
|
|
1318
1286
|
}];
|
|
1319
1287
|
}
|
|
1320
|
-
})(({
|
|
1321
|
-
ownerState,
|
|
1288
|
+
})((0, import_utils3.unstable_memoTheme)(({
|
|
1322
1289
|
theme
|
|
1323
|
-
}) =>
|
|
1290
|
+
}) => ({
|
|
1291
|
+
display: "inline-flex",
|
|
1324
1292
|
[`& .${loadingButtonClasses_default.startIconLoadingStart}, & .${loadingButtonClasses_default.endIconLoadingEnd}`]: {
|
|
1325
1293
|
transition: theme.transitions.create(["opacity"], {
|
|
1326
1294
|
duration: theme.transitions.duration.short
|
|
1327
1295
|
}),
|
|
1328
1296
|
opacity: 0
|
|
1329
|
-
}
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
},
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
}
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
}
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
}
|
|
1297
|
+
},
|
|
1298
|
+
variants: [{
|
|
1299
|
+
props: {
|
|
1300
|
+
loadingPosition: "center"
|
|
1301
|
+
},
|
|
1302
|
+
style: {
|
|
1303
|
+
transition: theme.transitions.create(["background-color", "box-shadow", "border-color"], {
|
|
1304
|
+
duration: theme.transitions.duration.short
|
|
1305
|
+
}),
|
|
1306
|
+
[`&.${loadingButtonClasses_default.loading}`]: {
|
|
1307
|
+
color: "transparent"
|
|
1308
|
+
}
|
|
1309
|
+
}
|
|
1310
|
+
}, {
|
|
1311
|
+
props: ({
|
|
1312
|
+
ownerState
|
|
1313
|
+
}) => ownerState.loadingPosition === "start" && ownerState.fullWidth,
|
|
1314
|
+
style: {
|
|
1315
|
+
[`& .${loadingButtonClasses_default.startIconLoadingStart}, & .${loadingButtonClasses_default.endIconLoadingEnd}`]: {
|
|
1316
|
+
transition: theme.transitions.create(["opacity"], {
|
|
1317
|
+
duration: theme.transitions.duration.short
|
|
1318
|
+
}),
|
|
1319
|
+
opacity: 0,
|
|
1320
|
+
marginRight: -8
|
|
1321
|
+
}
|
|
1322
|
+
}
|
|
1323
|
+
}, {
|
|
1324
|
+
props: ({
|
|
1325
|
+
ownerState
|
|
1326
|
+
}) => ownerState.loadingPosition === "end" && ownerState.fullWidth,
|
|
1327
|
+
style: {
|
|
1328
|
+
[`& .${loadingButtonClasses_default.startIconLoadingStart}, & .${loadingButtonClasses_default.endIconLoadingEnd}`]: {
|
|
1329
|
+
transition: theme.transitions.create(["opacity"], {
|
|
1330
|
+
duration: theme.transitions.duration.short
|
|
1331
|
+
}),
|
|
1332
|
+
opacity: 0,
|
|
1333
|
+
marginLeft: -8
|
|
1334
|
+
}
|
|
1335
|
+
}
|
|
1336
|
+
}]
|
|
1337
|
+
})));
|
|
1354
1338
|
var LoadingButtonLoadingIndicator = (0, import_styles.styled)("span", {
|
|
1355
1339
|
name: "MuiLoadingButton",
|
|
1356
1340
|
slot: "LoadingIndicator",
|
|
@@ -1360,40 +1344,106 @@ var LoadingButtonLoadingIndicator = (0, import_styles.styled)("span", {
|
|
|
1360
1344
|
} = props;
|
|
1361
1345
|
return [styles.loadingIndicator, styles[`loadingIndicator${(0, import_utils3.capitalize)(ownerState.loadingPosition)}`]];
|
|
1362
1346
|
}
|
|
1363
|
-
})(({
|
|
1364
|
-
theme
|
|
1365
|
-
|
|
1366
|
-
}) => _extends({
|
|
1347
|
+
})((0, import_utils3.unstable_memoTheme)(({
|
|
1348
|
+
theme
|
|
1349
|
+
}) => ({
|
|
1367
1350
|
position: "absolute",
|
|
1368
1351
|
visibility: "visible",
|
|
1369
|
-
display: "flex"
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
},
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
},
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
}
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
}
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1352
|
+
display: "flex",
|
|
1353
|
+
variants: [{
|
|
1354
|
+
props: {
|
|
1355
|
+
loadingPosition: "start",
|
|
1356
|
+
size: "small"
|
|
1357
|
+
},
|
|
1358
|
+
style: {
|
|
1359
|
+
left: 10
|
|
1360
|
+
}
|
|
1361
|
+
}, {
|
|
1362
|
+
props: ({
|
|
1363
|
+
loadingPosition,
|
|
1364
|
+
ownerState
|
|
1365
|
+
}) => loadingPosition === "start" && ownerState.size !== "small",
|
|
1366
|
+
style: {
|
|
1367
|
+
left: 14
|
|
1368
|
+
}
|
|
1369
|
+
}, {
|
|
1370
|
+
props: {
|
|
1371
|
+
variant: "text",
|
|
1372
|
+
loadingPosition: "start"
|
|
1373
|
+
},
|
|
1374
|
+
style: {
|
|
1375
|
+
left: 6
|
|
1376
|
+
}
|
|
1377
|
+
}, {
|
|
1378
|
+
props: {
|
|
1379
|
+
loadingPosition: "center"
|
|
1380
|
+
},
|
|
1381
|
+
style: {
|
|
1382
|
+
left: "50%",
|
|
1383
|
+
transform: "translate(-50%)",
|
|
1384
|
+
color: (theme.vars || theme).palette.action.disabled
|
|
1385
|
+
}
|
|
1386
|
+
}, {
|
|
1387
|
+
props: {
|
|
1388
|
+
loadingPosition: "end",
|
|
1389
|
+
size: "small"
|
|
1390
|
+
},
|
|
1391
|
+
style: {
|
|
1392
|
+
right: 10
|
|
1393
|
+
}
|
|
1394
|
+
}, {
|
|
1395
|
+
props: ({
|
|
1396
|
+
loadingPosition,
|
|
1397
|
+
ownerState
|
|
1398
|
+
}) => loadingPosition === "end" && ownerState.size !== "small",
|
|
1399
|
+
style: {
|
|
1400
|
+
right: 14
|
|
1401
|
+
}
|
|
1402
|
+
}, {
|
|
1403
|
+
props: {
|
|
1404
|
+
variant: "text",
|
|
1405
|
+
loadingPosition: "end"
|
|
1406
|
+
},
|
|
1407
|
+
style: {
|
|
1408
|
+
right: 6
|
|
1409
|
+
}
|
|
1410
|
+
}, {
|
|
1411
|
+
props: ({
|
|
1412
|
+
ownerState
|
|
1413
|
+
}) => ownerState.loadingPosition === "start" && ownerState.fullWidth,
|
|
1414
|
+
style: {
|
|
1415
|
+
position: "relative",
|
|
1416
|
+
left: -10
|
|
1417
|
+
}
|
|
1418
|
+
}, {
|
|
1419
|
+
props: ({
|
|
1420
|
+
ownerState
|
|
1421
|
+
}) => ownerState.loadingPosition === "end" && ownerState.fullWidth,
|
|
1422
|
+
style: {
|
|
1423
|
+
position: "relative",
|
|
1424
|
+
right: -10
|
|
1425
|
+
}
|
|
1426
|
+
}]
|
|
1427
|
+
})));
|
|
1428
|
+
var LoadingButtonLabel = (0, import_styles.styled)("span", {
|
|
1429
|
+
name: "MuiLoadingButton",
|
|
1430
|
+
slot: "Label",
|
|
1431
|
+
overridesResolver: (props, styles) => {
|
|
1432
|
+
return [styles.label];
|
|
1433
|
+
}
|
|
1434
|
+
})({
|
|
1435
|
+
display: "inherit",
|
|
1436
|
+
alignItems: "inherit",
|
|
1437
|
+
justifyContent: "inherit"
|
|
1438
|
+
});
|
|
1389
1439
|
var LoadingButton = /* @__PURE__ */ React.forwardRef(function LoadingButton2(inProps, ref) {
|
|
1390
1440
|
const contextProps = React.useContext(import_ButtonGroup.ButtonGroupContext);
|
|
1391
1441
|
const resolvedProps = resolveProps(contextProps, inProps);
|
|
1392
|
-
const props = (0,
|
|
1442
|
+
const props = (0, import_DefaultPropsProvider.useDefaultProps)({
|
|
1393
1443
|
props: resolvedProps,
|
|
1394
1444
|
name: "MuiLoadingButton"
|
|
1395
1445
|
});
|
|
1396
|
-
const {
|
|
1446
|
+
const _a = props, {
|
|
1397
1447
|
children,
|
|
1398
1448
|
disabled = false,
|
|
1399
1449
|
id: idProp,
|
|
@@ -1401,14 +1451,22 @@ var LoadingButton = /* @__PURE__ */ React.forwardRef(function LoadingButton2(inP
|
|
|
1401
1451
|
loadingIndicator: loadingIndicatorProp,
|
|
1402
1452
|
loadingPosition = "center",
|
|
1403
1453
|
variant = "text"
|
|
1404
|
-
} =
|
|
1454
|
+
} = _a, other = __objRest(_a, [
|
|
1455
|
+
"children",
|
|
1456
|
+
"disabled",
|
|
1457
|
+
"id",
|
|
1458
|
+
"loading",
|
|
1459
|
+
"loadingIndicator",
|
|
1460
|
+
"loadingPosition",
|
|
1461
|
+
"variant"
|
|
1462
|
+
]);
|
|
1405
1463
|
const id = (0, import_utils3.unstable_useId)(idProp);
|
|
1406
1464
|
const loadingIndicator = loadingIndicatorProp != null ? loadingIndicatorProp : /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_CircularProgress.default, {
|
|
1407
1465
|
"aria-labelledby": id,
|
|
1408
1466
|
color: "inherit",
|
|
1409
1467
|
size: 16
|
|
1410
1468
|
});
|
|
1411
|
-
const ownerState =
|
|
1469
|
+
const ownerState = __spreadProps(__spreadValues({}, props), {
|
|
1412
1470
|
disabled,
|
|
1413
1471
|
loading,
|
|
1414
1472
|
loadingIndicator,
|
|
@@ -1421,15 +1479,21 @@ var LoadingButton = /* @__PURE__ */ React.forwardRef(function LoadingButton2(inP
|
|
|
1421
1479
|
ownerState,
|
|
1422
1480
|
children: loadingIndicator
|
|
1423
1481
|
}) : null;
|
|
1424
|
-
return /* @__PURE__ */ (0,
|
|
1482
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(LoadingButtonRoot, __spreadProps(__spreadValues({
|
|
1425
1483
|
disabled: disabled || loading,
|
|
1426
1484
|
id,
|
|
1427
1485
|
ref
|
|
1428
|
-
}, other, {
|
|
1486
|
+
}, other), {
|
|
1429
1487
|
variant,
|
|
1430
1488
|
classes,
|
|
1431
1489
|
ownerState,
|
|
1432
|
-
children: [ownerState.loadingPosition === "end" ?
|
|
1490
|
+
children: [ownerState.loadingPosition === "end" ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(LoadingButtonLabel, {
|
|
1491
|
+
className: classes.label,
|
|
1492
|
+
children
|
|
1493
|
+
}) : loadingButtonLoadingIndicator, ownerState.loadingPosition === "end" ? loadingButtonLoadingIndicator : /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(LoadingButtonLabel, {
|
|
1494
|
+
className: classes.label,
|
|
1495
|
+
children
|
|
1496
|
+
})]
|
|
1433
1497
|
}));
|
|
1434
1498
|
});
|
|
1435
1499
|
process.env.NODE_ENV !== "production" ? LoadingButton.propTypes = {
|
|
@@ -1493,14 +1557,14 @@ var LoadingButton_default = LoadingButton;
|
|
|
1493
1557
|
|
|
1494
1558
|
// ../button/src/lib/LoadingButton.tsx
|
|
1495
1559
|
var import_CircularProgress2 = __toESM(require("@mui/material/CircularProgress"));
|
|
1496
|
-
var
|
|
1497
|
-
var LoadingIndicator = /* @__PURE__ */ (0,
|
|
1560
|
+
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
1561
|
+
var LoadingIndicator = /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_CircularProgress2.default, { color: "inherit", size: 16, "aria-label": "loading" });
|
|
1498
1562
|
var LoadingButton3 = (0, import_react3.forwardRef)((props, ref) => {
|
|
1499
1563
|
const _a = props, { children, loading } = _a, rest = __objRest(_a, ["children", "loading"]);
|
|
1500
1564
|
const loadingPosition = rest.startIcon ? "start" : "end";
|
|
1501
1565
|
const nonLoadingStyling = rest.startIcon || rest.endIcon || loading ? {} : { padding: "0 .7rem" };
|
|
1502
|
-
const endIcon = rest.startIcon ? void 0 : /* @__PURE__ */ (0,
|
|
1503
|
-
return /* @__PURE__ */ (0,
|
|
1566
|
+
const endIcon = rest.startIcon ? void 0 : /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { style: loading ? { padding: "0 .7rem" } : {} });
|
|
1567
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
1504
1568
|
LoadingButton_default,
|
|
1505
1569
|
__spreadProps(__spreadValues({
|
|
1506
1570
|
endIcon,
|
|
@@ -1510,7 +1574,7 @@ var LoadingButton3 = (0, import_react3.forwardRef)((props, ref) => {
|
|
|
1510
1574
|
loadingIndicator: LoadingIndicator
|
|
1511
1575
|
}, rest), {
|
|
1512
1576
|
ref,
|
|
1513
|
-
children: /* @__PURE__ */ (0,
|
|
1577
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { style: nonLoadingStyling, children })
|
|
1514
1578
|
})
|
|
1515
1579
|
);
|
|
1516
1580
|
});
|
|
@@ -1521,29 +1585,29 @@ var import_mui_icon2 = require("@availity/mui-icon");
|
|
|
1521
1585
|
// ../layout/src/lib/Box.tsx
|
|
1522
1586
|
var import_react4 = require("react");
|
|
1523
1587
|
var import_Box = __toESM(require("@mui/material/Box"));
|
|
1524
|
-
var
|
|
1588
|
+
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
1525
1589
|
var Box = (0, import_react4.forwardRef)((props, ref) => {
|
|
1526
|
-
return /* @__PURE__ */ (0,
|
|
1590
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_Box.default, __spreadProps(__spreadValues({}, props), { ref }));
|
|
1527
1591
|
});
|
|
1528
1592
|
|
|
1529
1593
|
// ../layout/src/lib/Container.tsx
|
|
1530
1594
|
var import_Container = __toESM(require("@mui/material/Container"));
|
|
1531
|
-
var
|
|
1595
|
+
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
1532
1596
|
|
|
1533
1597
|
// ../layout/src/lib/Grid.tsx
|
|
1534
|
-
var
|
|
1535
|
-
var
|
|
1598
|
+
var import_Grid2 = __toESM(require("@mui/material/Grid2"));
|
|
1599
|
+
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
1536
1600
|
var Grid = (args) => {
|
|
1537
|
-
return /* @__PURE__ */ (0,
|
|
1601
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_Grid2.default, __spreadValues({}, args));
|
|
1538
1602
|
};
|
|
1539
1603
|
|
|
1540
1604
|
// ../layout/src/lib/Stack.tsx
|
|
1541
1605
|
var import_Stack = __toESM(require("@mui/material/Stack"));
|
|
1542
|
-
var
|
|
1606
|
+
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
1543
1607
|
|
|
1544
1608
|
// src/lib/Stepper.tsx
|
|
1545
1609
|
var import_styles2 = require("@mui/material/styles");
|
|
1546
|
-
var
|
|
1610
|
+
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
1547
1611
|
var Stepper = (_a) => {
|
|
1548
1612
|
var _b = _a, { children, connector, orientation, scrollButtons } = _b, rest = __objRest(_b, ["children", "connector", "orientation", "scrollButtons"]);
|
|
1549
1613
|
const alternativeLabel = orientation !== "vertical";
|
|
@@ -1580,8 +1644,8 @@ var Stepper = (_a) => {
|
|
|
1580
1644
|
flexShrink: 0,
|
|
1581
1645
|
paddingTop: "15px"
|
|
1582
1646
|
});
|
|
1583
|
-
return showScrollButtons ? /* @__PURE__ */ (0,
|
|
1584
|
-
/* @__PURE__ */ (0,
|
|
1647
|
+
return showScrollButtons ? /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(Grid, { container: true, direction: "row", justifyContent: "space-between", wrap: "nowrap", children: [
|
|
1648
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(ScrollIconContainer, { style: { paddingRight: "8px" }, children: showLeftButton && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
1585
1649
|
IconButton,
|
|
1586
1650
|
{
|
|
1587
1651
|
title: "Previous",
|
|
@@ -1590,10 +1654,10 @@ var Stepper = (_a) => {
|
|
|
1590
1654
|
var _a2;
|
|
1591
1655
|
return (_a2 = stepperRef.current) == null ? void 0 : _a2.scrollTo({ left: 0, behavior: "smooth" });
|
|
1592
1656
|
},
|
|
1593
|
-
children: /* @__PURE__ */ (0,
|
|
1657
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_mui_icon2.NavigatePreviousIcon, { fontSize: "xsmall" })
|
|
1594
1658
|
}
|
|
1595
1659
|
) }),
|
|
1596
|
-
/* @__PURE__ */ (0,
|
|
1660
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
1597
1661
|
import_Stepper.default,
|
|
1598
1662
|
__spreadProps(__spreadValues({
|
|
1599
1663
|
"aria-label": "multi-step process",
|
|
@@ -1607,7 +1671,7 @@ var Stepper = (_a) => {
|
|
|
1607
1671
|
tabIndex: 0
|
|
1608
1672
|
})
|
|
1609
1673
|
),
|
|
1610
|
-
/* @__PURE__ */ (0,
|
|
1674
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(ScrollIconContainer, { style: { paddingLeft: "8px" }, children: showRightButton && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
1611
1675
|
IconButton,
|
|
1612
1676
|
{
|
|
1613
1677
|
title: "Next",
|
|
@@ -1619,10 +1683,10 @@ var Stepper = (_a) => {
|
|
|
1619
1683
|
behavior: "smooth"
|
|
1620
1684
|
});
|
|
1621
1685
|
},
|
|
1622
|
-
children: /* @__PURE__ */ (0,
|
|
1686
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_mui_icon2.NavigateNextIcon, { fontSize: "xsmall" })
|
|
1623
1687
|
}
|
|
1624
1688
|
) })
|
|
1625
|
-
] }) : /* @__PURE__ */ (0,
|
|
1689
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
1626
1690
|
import_Stepper.default,
|
|
1627
1691
|
__spreadProps(__spreadValues({
|
|
1628
1692
|
"aria-label": "multi-step process",
|
|
@@ -1674,22 +1738,4 @@ object-assign/index.js:
|
|
|
1674
1738
|
(c) Sindre Sorhus
|
|
1675
1739
|
@license MIT
|
|
1676
1740
|
*)
|
|
1677
|
-
|
|
1678
|
-
@mui/utils/index.js:
|
|
1679
|
-
(**
|
|
1680
|
-
* @mui/utils v5.15.14
|
|
1681
|
-
*
|
|
1682
|
-
* @license MIT
|
|
1683
|
-
* This source code is licensed under the MIT license found in the
|
|
1684
|
-
* LICENSE file in the root directory of this source tree.
|
|
1685
|
-
*)
|
|
1686
|
-
|
|
1687
|
-
@mui/utils/index.js:
|
|
1688
|
-
(**
|
|
1689
|
-
* @mui/utils v5.15.14
|
|
1690
|
-
*
|
|
1691
|
-
* @license MIT
|
|
1692
|
-
* This source code is licensed under the MIT license found in the
|
|
1693
|
-
* LICENSE file in the root directory of this source tree.
|
|
1694
|
-
*)
|
|
1695
1741
|
*/
|