@availity/mui-stepper 1.0.4 → 1.0.5
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 +5 -0
- package/dist/index.js +33 -29
- package/dist/index.mjs +24 -20
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [1.0.5](https://github.com/Availity/element/compare/@availity/mui-stepper@1.0.4...@availity/mui-stepper@1.0.5) (2025-04-21)
|
|
6
|
+
|
|
7
|
+
### Dependency Updates
|
|
8
|
+
|
|
9
|
+
* `mui-button` updated to version `1.0.4`
|
|
5
10
|
## [1.0.4](https://github.com/Availity/element/compare/@availity/mui-stepper@1.0.3...@availity/mui-stepper@1.0.4) (2025-04-14)
|
|
6
11
|
|
|
7
12
|
### Dependency Updates
|
package/dist/index.js
CHANGED
|
@@ -1104,11 +1104,15 @@ var Button = (0, import_react.forwardRef)((props, ref) => {
|
|
|
1104
1104
|
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_Button.default, __spreadProps(__spreadValues(__spreadValues({}, props), overrideProps), { ref }));
|
|
1105
1105
|
});
|
|
1106
1106
|
|
|
1107
|
+
// ../button/src/lib/ButtonGroup.tsx
|
|
1108
|
+
var import_ButtonGroup = __toESM(require("@mui/material/ButtonGroup"));
|
|
1109
|
+
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
1110
|
+
|
|
1107
1111
|
// ../button/src/lib/IconButton.tsx
|
|
1108
1112
|
var import_react2 = require("react");
|
|
1109
1113
|
var import_IconButton = __toESM(require("@mui/material/IconButton"));
|
|
1110
1114
|
var import_Tooltip = __toESM(require("@mui/material/Tooltip"));
|
|
1111
|
-
var
|
|
1115
|
+
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
1112
1116
|
var outlinedStyles = {
|
|
1113
1117
|
borderRadius: ".25rem",
|
|
1114
1118
|
border: 1
|
|
@@ -1116,7 +1120,7 @@ var outlinedStyles = {
|
|
|
1116
1120
|
var IconButton = (0, import_react2.forwardRef)((props, ref) => {
|
|
1117
1121
|
const _a = props, { title, variant = "text", sx, size = "medium" } = _a, rest = __objRest(_a, ["title", "variant", "sx", "size"]);
|
|
1118
1122
|
const styles = __spreadValues(__spreadValues({}, sx), variant === "outlined" && outlinedStyles);
|
|
1119
|
-
return /* @__PURE__ */ (0,
|
|
1123
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_Tooltip.default, { title, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_IconButton.default, __spreadProps(__spreadValues({ "aria-label": title, sx: __spreadValues({}, styles) }, rest), { ref, size })) });
|
|
1120
1124
|
});
|
|
1121
1125
|
|
|
1122
1126
|
// ../button/src/lib/LoadingButton.tsx
|
|
@@ -1242,7 +1246,7 @@ function generateUtilityClasses(componentName, slots, globalStatePrefix = "Mui")
|
|
|
1242
1246
|
var import_utils3 = require("@mui/material/utils");
|
|
1243
1247
|
var import_DefaultPropsProvider = require("@mui/material/DefaultPropsProvider");
|
|
1244
1248
|
var import_Button2 = __toESM(require("@mui/material/Button"));
|
|
1245
|
-
var
|
|
1249
|
+
var import_ButtonGroup2 = require("@mui/material/ButtonGroup");
|
|
1246
1250
|
var import_CircularProgress = __toESM(require("@mui/material/CircularProgress"));
|
|
1247
1251
|
|
|
1248
1252
|
// ../../node_modules/@mui/lab/zero-styled/index.js
|
|
@@ -1256,7 +1260,7 @@ var loadingButtonClasses = generateUtilityClasses("MuiLoadingButton", ["root", "
|
|
|
1256
1260
|
var loadingButtonClasses_default = loadingButtonClasses;
|
|
1257
1261
|
|
|
1258
1262
|
// ../../node_modules/@mui/lab/LoadingButton/LoadingButton.js
|
|
1259
|
-
var
|
|
1263
|
+
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
1260
1264
|
var useUtilityClasses = (ownerState) => {
|
|
1261
1265
|
const {
|
|
1262
1266
|
loading,
|
|
@@ -1437,7 +1441,7 @@ var LoadingButtonLabel = (0, import_styles.styled)("span", {
|
|
|
1437
1441
|
justifyContent: "inherit"
|
|
1438
1442
|
});
|
|
1439
1443
|
var LoadingButton = /* @__PURE__ */ React.forwardRef(function LoadingButton2(inProps, ref) {
|
|
1440
|
-
const contextProps = React.useContext(
|
|
1444
|
+
const contextProps = React.useContext(import_ButtonGroup2.ButtonGroupContext);
|
|
1441
1445
|
const resolvedProps = resolveProps(contextProps, inProps);
|
|
1442
1446
|
const props = (0, import_DefaultPropsProvider.useDefaultProps)({
|
|
1443
1447
|
props: resolvedProps,
|
|
@@ -1461,7 +1465,7 @@ var LoadingButton = /* @__PURE__ */ React.forwardRef(function LoadingButton2(inP
|
|
|
1461
1465
|
"variant"
|
|
1462
1466
|
]);
|
|
1463
1467
|
const id = (0, import_utils3.unstable_useId)(idProp);
|
|
1464
|
-
const loadingIndicator = loadingIndicatorProp != null ? loadingIndicatorProp : /* @__PURE__ */ (0,
|
|
1468
|
+
const loadingIndicator = loadingIndicatorProp != null ? loadingIndicatorProp : /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_CircularProgress.default, {
|
|
1465
1469
|
"aria-labelledby": id,
|
|
1466
1470
|
color: "inherit",
|
|
1467
1471
|
size: 16
|
|
@@ -1474,12 +1478,12 @@ var LoadingButton = /* @__PURE__ */ React.forwardRef(function LoadingButton2(inP
|
|
|
1474
1478
|
variant
|
|
1475
1479
|
});
|
|
1476
1480
|
const classes = useUtilityClasses(ownerState);
|
|
1477
|
-
const loadingButtonLoadingIndicator = loading ? /* @__PURE__ */ (0,
|
|
1481
|
+
const loadingButtonLoadingIndicator = loading ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(LoadingButtonLoadingIndicator, {
|
|
1478
1482
|
className: classes.loadingIndicator,
|
|
1479
1483
|
ownerState,
|
|
1480
1484
|
children: loadingIndicator
|
|
1481
1485
|
}) : null;
|
|
1482
|
-
return /* @__PURE__ */ (0,
|
|
1486
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(LoadingButtonRoot, __spreadProps(__spreadValues({
|
|
1483
1487
|
disabled: disabled || loading,
|
|
1484
1488
|
id,
|
|
1485
1489
|
ref
|
|
@@ -1487,10 +1491,10 @@ var LoadingButton = /* @__PURE__ */ React.forwardRef(function LoadingButton2(inP
|
|
|
1487
1491
|
variant,
|
|
1488
1492
|
classes,
|
|
1489
1493
|
ownerState,
|
|
1490
|
-
children: [ownerState.loadingPosition === "end" ? /* @__PURE__ */ (0,
|
|
1494
|
+
children: [ownerState.loadingPosition === "end" ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(LoadingButtonLabel, {
|
|
1491
1495
|
className: classes.label,
|
|
1492
1496
|
children
|
|
1493
|
-
}) : loadingButtonLoadingIndicator, ownerState.loadingPosition === "end" ? loadingButtonLoadingIndicator : /* @__PURE__ */ (0,
|
|
1497
|
+
}) : loadingButtonLoadingIndicator, ownerState.loadingPosition === "end" ? loadingButtonLoadingIndicator : /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(LoadingButtonLabel, {
|
|
1494
1498
|
className: classes.label,
|
|
1495
1499
|
children
|
|
1496
1500
|
})]
|
|
@@ -1557,14 +1561,14 @@ var LoadingButton_default = LoadingButton;
|
|
|
1557
1561
|
|
|
1558
1562
|
// ../button/src/lib/LoadingButton.tsx
|
|
1559
1563
|
var import_CircularProgress2 = __toESM(require("@mui/material/CircularProgress"));
|
|
1560
|
-
var
|
|
1561
|
-
var LoadingIndicator = /* @__PURE__ */ (0,
|
|
1564
|
+
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
1565
|
+
var LoadingIndicator = /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_CircularProgress2.default, { color: "inherit", size: 16, "aria-label": "loading" });
|
|
1562
1566
|
var LoadingButton3 = (0, import_react3.forwardRef)((props, ref) => {
|
|
1563
1567
|
const _a = props, { children, loading } = _a, rest = __objRest(_a, ["children", "loading"]);
|
|
1564
1568
|
const loadingPosition = rest.startIcon ? "start" : "end";
|
|
1565
1569
|
const nonLoadingStyling = rest.startIcon || rest.endIcon || loading ? {} : { padding: "0 .7rem" };
|
|
1566
|
-
const endIcon = rest.startIcon ? void 0 : /* @__PURE__ */ (0,
|
|
1567
|
-
return /* @__PURE__ */ (0,
|
|
1570
|
+
const endIcon = rest.startIcon ? void 0 : /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { style: loading ? { padding: "0 .7rem" } : {} });
|
|
1571
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
1568
1572
|
LoadingButton_default,
|
|
1569
1573
|
__spreadProps(__spreadValues({
|
|
1570
1574
|
endIcon,
|
|
@@ -1574,7 +1578,7 @@ var LoadingButton3 = (0, import_react3.forwardRef)((props, ref) => {
|
|
|
1574
1578
|
loadingIndicator: LoadingIndicator
|
|
1575
1579
|
}, rest), {
|
|
1576
1580
|
ref,
|
|
1577
|
-
children: /* @__PURE__ */ (0,
|
|
1581
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { style: nonLoadingStyling, children })
|
|
1578
1582
|
})
|
|
1579
1583
|
);
|
|
1580
1584
|
});
|
|
@@ -1585,29 +1589,29 @@ var import_mui_icon2 = require("@availity/mui-icon");
|
|
|
1585
1589
|
// ../layout/src/lib/Box.tsx
|
|
1586
1590
|
var import_react4 = require("react");
|
|
1587
1591
|
var import_Box = __toESM(require("@mui/material/Box"));
|
|
1588
|
-
var
|
|
1592
|
+
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
1589
1593
|
var Box = (0, import_react4.forwardRef)((props, ref) => {
|
|
1590
|
-
return /* @__PURE__ */ (0,
|
|
1594
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_Box.default, __spreadProps(__spreadValues({}, props), { ref }));
|
|
1591
1595
|
});
|
|
1592
1596
|
|
|
1593
1597
|
// ../layout/src/lib/Container.tsx
|
|
1594
1598
|
var import_Container = __toESM(require("@mui/material/Container"));
|
|
1595
|
-
var
|
|
1599
|
+
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
1596
1600
|
|
|
1597
1601
|
// ../layout/src/lib/Grid.tsx
|
|
1598
1602
|
var import_Grid2 = __toESM(require("@mui/material/Grid2"));
|
|
1599
|
-
var
|
|
1603
|
+
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
1600
1604
|
var Grid = (args) => {
|
|
1601
|
-
return /* @__PURE__ */ (0,
|
|
1605
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_Grid2.default, __spreadValues({}, args));
|
|
1602
1606
|
};
|
|
1603
1607
|
|
|
1604
1608
|
// ../layout/src/lib/Stack.tsx
|
|
1605
1609
|
var import_Stack = __toESM(require("@mui/material/Stack"));
|
|
1606
|
-
var
|
|
1610
|
+
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
1607
1611
|
|
|
1608
1612
|
// src/lib/Stepper.tsx
|
|
1609
1613
|
var import_styles2 = require("@mui/material/styles");
|
|
1610
|
-
var
|
|
1614
|
+
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
1611
1615
|
var Stepper = (_a) => {
|
|
1612
1616
|
var _b = _a, { children, connector, orientation, scrollButtons } = _b, rest = __objRest(_b, ["children", "connector", "orientation", "scrollButtons"]);
|
|
1613
1617
|
const alternativeLabel = orientation !== "vertical";
|
|
@@ -1644,8 +1648,8 @@ var Stepper = (_a) => {
|
|
|
1644
1648
|
flexShrink: 0,
|
|
1645
1649
|
paddingTop: "15px"
|
|
1646
1650
|
});
|
|
1647
|
-
return showScrollButtons ? /* @__PURE__ */ (0,
|
|
1648
|
-
/* @__PURE__ */ (0,
|
|
1651
|
+
return showScrollButtons ? /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(Grid, { container: true, direction: "row", justifyContent: "space-between", wrap: "nowrap", children: [
|
|
1652
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(ScrollIconContainer, { style: { paddingRight: "8px" }, children: showLeftButton && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
1649
1653
|
IconButton,
|
|
1650
1654
|
{
|
|
1651
1655
|
title: "Previous",
|
|
@@ -1654,10 +1658,10 @@ var Stepper = (_a) => {
|
|
|
1654
1658
|
var _a2;
|
|
1655
1659
|
return (_a2 = stepperRef.current) == null ? void 0 : _a2.scrollTo({ left: 0, behavior: "smooth" });
|
|
1656
1660
|
},
|
|
1657
|
-
children: /* @__PURE__ */ (0,
|
|
1661
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_mui_icon2.NavigatePreviousIcon, { fontSize: "xsmall" })
|
|
1658
1662
|
}
|
|
1659
1663
|
) }),
|
|
1660
|
-
/* @__PURE__ */ (0,
|
|
1664
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
1661
1665
|
import_Stepper.default,
|
|
1662
1666
|
__spreadProps(__spreadValues({
|
|
1663
1667
|
"aria-label": "multi-step process",
|
|
@@ -1671,7 +1675,7 @@ var Stepper = (_a) => {
|
|
|
1671
1675
|
tabIndex: 0
|
|
1672
1676
|
})
|
|
1673
1677
|
),
|
|
1674
|
-
/* @__PURE__ */ (0,
|
|
1678
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(ScrollIconContainer, { style: { paddingLeft: "8px" }, children: showRightButton && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
1675
1679
|
IconButton,
|
|
1676
1680
|
{
|
|
1677
1681
|
title: "Next",
|
|
@@ -1683,10 +1687,10 @@ var Stepper = (_a) => {
|
|
|
1683
1687
|
behavior: "smooth"
|
|
1684
1688
|
});
|
|
1685
1689
|
},
|
|
1686
|
-
children: /* @__PURE__ */ (0,
|
|
1690
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_mui_icon2.NavigateNextIcon, { fontSize: "xsmall" })
|
|
1687
1691
|
}
|
|
1688
1692
|
) })
|
|
1689
|
-
] }) : /* @__PURE__ */ (0,
|
|
1693
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
1690
1694
|
import_Stepper.default,
|
|
1691
1695
|
__spreadProps(__spreadValues({
|
|
1692
1696
|
"aria-label": "multi-step process",
|
package/dist/index.mjs
CHANGED
|
@@ -1085,11 +1085,15 @@ var Button = forwardRef((props, ref) => {
|
|
|
1085
1085
|
return /* @__PURE__ */ jsx7(MUIButton, __spreadProps(__spreadValues(__spreadValues({}, props), overrideProps), { ref }));
|
|
1086
1086
|
});
|
|
1087
1087
|
|
|
1088
|
+
// ../button/src/lib/ButtonGroup.tsx
|
|
1089
|
+
import { default as MUIButtonGroup } from "@mui/material/ButtonGroup";
|
|
1090
|
+
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
1091
|
+
|
|
1088
1092
|
// ../button/src/lib/IconButton.tsx
|
|
1089
1093
|
import { forwardRef as forwardRef2 } from "react";
|
|
1090
1094
|
import { default as MuiIconButton } from "@mui/material/IconButton";
|
|
1091
1095
|
import Tooltip from "@mui/material/Tooltip";
|
|
1092
|
-
import { jsx as
|
|
1096
|
+
import { jsx as jsx9 } from "react/jsx-runtime";
|
|
1093
1097
|
var outlinedStyles = {
|
|
1094
1098
|
borderRadius: ".25rem",
|
|
1095
1099
|
border: 1
|
|
@@ -1097,7 +1101,7 @@ var outlinedStyles = {
|
|
|
1097
1101
|
var IconButton = forwardRef2((props, ref) => {
|
|
1098
1102
|
const _a = props, { title, variant = "text", sx, size = "medium" } = _a, rest = __objRest(_a, ["title", "variant", "sx", "size"]);
|
|
1099
1103
|
const styles = __spreadValues(__spreadValues({}, sx), variant === "outlined" && outlinedStyles);
|
|
1100
|
-
return /* @__PURE__ */
|
|
1104
|
+
return /* @__PURE__ */ jsx9(Tooltip, { title, children: /* @__PURE__ */ jsx9(MuiIconButton, __spreadProps(__spreadValues({ "aria-label": title, sx: __spreadValues({}, styles) }, rest), { ref, size })) });
|
|
1101
1105
|
});
|
|
1102
1106
|
|
|
1103
1107
|
// ../button/src/lib/LoadingButton.tsx
|
|
@@ -1538,14 +1542,14 @@ var LoadingButton_default = LoadingButton;
|
|
|
1538
1542
|
|
|
1539
1543
|
// ../button/src/lib/LoadingButton.tsx
|
|
1540
1544
|
import CircularProgress2 from "@mui/material/CircularProgress";
|
|
1541
|
-
import { jsx as
|
|
1542
|
-
var LoadingIndicator = /* @__PURE__ */
|
|
1545
|
+
import { jsx as jsx10 } from "react/jsx-runtime";
|
|
1546
|
+
var LoadingIndicator = /* @__PURE__ */ jsx10(CircularProgress2, { color: "inherit", size: 16, "aria-label": "loading" });
|
|
1543
1547
|
var LoadingButton3 = forwardRef4((props, ref) => {
|
|
1544
1548
|
const _a = props, { children, loading } = _a, rest = __objRest(_a, ["children", "loading"]);
|
|
1545
1549
|
const loadingPosition = rest.startIcon ? "start" : "end";
|
|
1546
1550
|
const nonLoadingStyling = rest.startIcon || rest.endIcon || loading ? {} : { padding: "0 .7rem" };
|
|
1547
|
-
const endIcon = rest.startIcon ? void 0 : /* @__PURE__ */
|
|
1548
|
-
return /* @__PURE__ */
|
|
1551
|
+
const endIcon = rest.startIcon ? void 0 : /* @__PURE__ */ jsx10("span", { style: loading ? { padding: "0 .7rem" } : {} });
|
|
1552
|
+
return /* @__PURE__ */ jsx10(
|
|
1549
1553
|
LoadingButton_default,
|
|
1550
1554
|
__spreadProps(__spreadValues({
|
|
1551
1555
|
endIcon,
|
|
@@ -1555,7 +1559,7 @@ var LoadingButton3 = forwardRef4((props, ref) => {
|
|
|
1555
1559
|
loadingIndicator: LoadingIndicator
|
|
1556
1560
|
}, rest), {
|
|
1557
1561
|
ref,
|
|
1558
|
-
children: /* @__PURE__ */
|
|
1562
|
+
children: /* @__PURE__ */ jsx10("span", { style: nonLoadingStyling, children })
|
|
1559
1563
|
})
|
|
1560
1564
|
);
|
|
1561
1565
|
});
|
|
@@ -1566,29 +1570,29 @@ import { NavigatePreviousIcon, NavigateNextIcon } from "@availity/mui-icon";
|
|
|
1566
1570
|
// ../layout/src/lib/Box.tsx
|
|
1567
1571
|
import { forwardRef as forwardRef5 } from "react";
|
|
1568
1572
|
import MuiBox from "@mui/material/Box";
|
|
1569
|
-
import { jsx as
|
|
1573
|
+
import { jsx as jsx11 } from "react/jsx-runtime";
|
|
1570
1574
|
var Box = forwardRef5((props, ref) => {
|
|
1571
|
-
return /* @__PURE__ */
|
|
1575
|
+
return /* @__PURE__ */ jsx11(MuiBox, __spreadProps(__spreadValues({}, props), { ref }));
|
|
1572
1576
|
});
|
|
1573
1577
|
|
|
1574
1578
|
// ../layout/src/lib/Container.tsx
|
|
1575
1579
|
import MuiContainer from "@mui/material/Container";
|
|
1576
|
-
import { jsx as
|
|
1580
|
+
import { jsx as jsx12 } from "react/jsx-runtime";
|
|
1577
1581
|
|
|
1578
1582
|
// ../layout/src/lib/Grid.tsx
|
|
1579
1583
|
import MuiGrid2 from "@mui/material/Grid2";
|
|
1580
|
-
import { jsx as
|
|
1584
|
+
import { jsx as jsx13 } from "react/jsx-runtime";
|
|
1581
1585
|
var Grid = (args) => {
|
|
1582
|
-
return /* @__PURE__ */
|
|
1586
|
+
return /* @__PURE__ */ jsx13(MuiGrid2, __spreadValues({}, args));
|
|
1583
1587
|
};
|
|
1584
1588
|
|
|
1585
1589
|
// ../layout/src/lib/Stack.tsx
|
|
1586
1590
|
import MuiStack from "@mui/material/Stack";
|
|
1587
|
-
import { jsx as
|
|
1591
|
+
import { jsx as jsx14 } from "react/jsx-runtime";
|
|
1588
1592
|
|
|
1589
1593
|
// src/lib/Stepper.tsx
|
|
1590
1594
|
import { styled as styled2 } from "@mui/material/styles";
|
|
1591
|
-
import { jsx as
|
|
1595
|
+
import { jsx as jsx15, jsxs } from "react/jsx-runtime";
|
|
1592
1596
|
var Stepper = (_a) => {
|
|
1593
1597
|
var _b = _a, { children, connector, orientation, scrollButtons } = _b, rest = __objRest(_b, ["children", "connector", "orientation", "scrollButtons"]);
|
|
1594
1598
|
const alternativeLabel = orientation !== "vertical";
|
|
@@ -1626,7 +1630,7 @@ var Stepper = (_a) => {
|
|
|
1626
1630
|
paddingTop: "15px"
|
|
1627
1631
|
});
|
|
1628
1632
|
return showScrollButtons ? /* @__PURE__ */ jsxs(Grid, { container: true, direction: "row", justifyContent: "space-between", wrap: "nowrap", children: [
|
|
1629
|
-
/* @__PURE__ */
|
|
1633
|
+
/* @__PURE__ */ jsx15(ScrollIconContainer, { style: { paddingRight: "8px" }, children: showLeftButton && /* @__PURE__ */ jsx15(
|
|
1630
1634
|
IconButton,
|
|
1631
1635
|
{
|
|
1632
1636
|
title: "Previous",
|
|
@@ -1635,10 +1639,10 @@ var Stepper = (_a) => {
|
|
|
1635
1639
|
var _a2;
|
|
1636
1640
|
return (_a2 = stepperRef.current) == null ? void 0 : _a2.scrollTo({ left: 0, behavior: "smooth" });
|
|
1637
1641
|
},
|
|
1638
|
-
children: /* @__PURE__ */
|
|
1642
|
+
children: /* @__PURE__ */ jsx15(NavigatePreviousIcon, { fontSize: "xsmall" })
|
|
1639
1643
|
}
|
|
1640
1644
|
) }),
|
|
1641
|
-
/* @__PURE__ */
|
|
1645
|
+
/* @__PURE__ */ jsx15(
|
|
1642
1646
|
MuiStepper,
|
|
1643
1647
|
__spreadProps(__spreadValues({
|
|
1644
1648
|
"aria-label": "multi-step process",
|
|
@@ -1652,7 +1656,7 @@ var Stepper = (_a) => {
|
|
|
1652
1656
|
tabIndex: 0
|
|
1653
1657
|
})
|
|
1654
1658
|
),
|
|
1655
|
-
/* @__PURE__ */
|
|
1659
|
+
/* @__PURE__ */ jsx15(ScrollIconContainer, { style: { paddingLeft: "8px" }, children: showRightButton && /* @__PURE__ */ jsx15(
|
|
1656
1660
|
IconButton,
|
|
1657
1661
|
{
|
|
1658
1662
|
title: "Next",
|
|
@@ -1664,10 +1668,10 @@ var Stepper = (_a) => {
|
|
|
1664
1668
|
behavior: "smooth"
|
|
1665
1669
|
});
|
|
1666
1670
|
},
|
|
1667
|
-
children: /* @__PURE__ */
|
|
1671
|
+
children: /* @__PURE__ */ jsx15(NavigateNextIcon, { fontSize: "xsmall" })
|
|
1668
1672
|
}
|
|
1669
1673
|
) })
|
|
1670
|
-
] }) : /* @__PURE__ */
|
|
1674
|
+
] }) : /* @__PURE__ */ jsx15(
|
|
1671
1675
|
MuiStepper,
|
|
1672
1676
|
__spreadProps(__spreadValues({
|
|
1673
1677
|
"aria-label": "multi-step process",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@availity/mui-stepper",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"description": "Availity MUI Stepper Component - part of the @availity/element design system",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@availity/mui-typography": "^1.0.2"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@availity/mui-button": "^1.1.
|
|
47
|
+
"@availity/mui-button": "^1.1.3",
|
|
48
48
|
"@availity/mui-layout": "^1.0.2",
|
|
49
49
|
"@availity/mui-paper": "^1.0.2",
|
|
50
50
|
"@availity/mui-typography": "^1.0.2",
|