aefis-core-ui 2.3.0-rc37 → 2.3.0-rc38
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/dist/index.modern.js +16 -2
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -14975,6 +14975,11 @@ const WizardPanel = props => {
|
|
|
14975
14975
|
setIsCompleting(false);
|
|
14976
14976
|
}
|
|
14977
14977
|
}, [props.completed]);
|
|
14978
|
+
const titleStyle = {
|
|
14979
|
+
fontSize: "1.1rem",
|
|
14980
|
+
fontWeight: 500,
|
|
14981
|
+
mb: props.display === "drawer" ? 3 : 2
|
|
14982
|
+
};
|
|
14978
14983
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
14979
14984
|
children: [/*#__PURE__*/jsx(AppBar$1, {
|
|
14980
14985
|
position: props.display === "drawer" ? "sticky" : "relative",
|
|
@@ -14994,7 +14999,7 @@ const WizardPanel = props => {
|
|
|
14994
14999
|
children: /*#__PURE__*/jsx(SwipeableViews, {
|
|
14995
15000
|
axis: theme.direction === "rtl" ? "x-reverse" : "x",
|
|
14996
15001
|
index: activeStep,
|
|
14997
|
-
children: (_props$panels = props.panels) == null ? void 0 : _props$panels.map((step, index) => /*#__PURE__*/
|
|
15002
|
+
children: (_props$panels = props.panels) == null ? void 0 : _props$panels.map((step, index) => /*#__PURE__*/jsxs(Box$1, {
|
|
14998
15003
|
value: activeStep,
|
|
14999
15004
|
index: index,
|
|
15000
15005
|
dir: theme.direction,
|
|
@@ -15002,7 +15007,13 @@ const WizardPanel = props => {
|
|
|
15002
15007
|
sx: {
|
|
15003
15008
|
visibility: activeStep === index ? "visible" : "hidden"
|
|
15004
15009
|
},
|
|
15005
|
-
children: step.
|
|
15010
|
+
children: [step.panelTitle && /*#__PURE__*/jsxs(Typography, {
|
|
15011
|
+
gutterButtom: true,
|
|
15012
|
+
sx: titleStyle,
|
|
15013
|
+
variant: "h2",
|
|
15014
|
+
component: step.panelTitleComponent || "h3",
|
|
15015
|
+
children: ["Step ", index + 1, " : ", step.panelTitle]
|
|
15016
|
+
}), step.content]
|
|
15006
15017
|
}, `wizardPanelKey-${step.id}`))
|
|
15007
15018
|
})
|
|
15008
15019
|
}), /*#__PURE__*/jsx(Box$1, {
|
|
@@ -15077,6 +15088,9 @@ WizardPanel.propTypes = {
|
|
|
15077
15088
|
panels: PropTypes.arrayOf(PropTypes.shape({
|
|
15078
15089
|
id: PropTypes.any.isRequired,
|
|
15079
15090
|
title: PropTypes.string.isRequired,
|
|
15091
|
+
panelTitle: PropTypes.string,
|
|
15092
|
+
panelTitleComponent: PropTypes.oneOf(["h1", "h2", "h3", "h4", "div"]),
|
|
15093
|
+
panelTitleShowStep: PropTypes.bool,
|
|
15080
15094
|
content: PropTypes.any.isRequired
|
|
15081
15095
|
})).isRequired,
|
|
15082
15096
|
/** Disable the "Next" button. */
|