aefis-core-ui 2.3.0-rc57 → 2.3.0-rc58

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.
@@ -15104,6 +15104,41 @@ const bottomBarDefaultStyle = {
15104
15104
  left: 0,
15105
15105
  right: 0
15106
15106
  };
15107
+ const PanelTitleAndDescription = ({
15108
+ index,
15109
+ step,
15110
+ cardContent: _cardContent = false
15111
+ }) => {
15112
+ const titleStyle = {
15113
+ fontSize: "1.1rem",
15114
+ fontWeight: 500,
15115
+ mb: 2
15116
+ };
15117
+ return /*#__PURE__*/jsxs(Fragment, {
15118
+ children: [(step == null ? void 0 : step.panelTitle) && /*#__PURE__*/jsxs(Typography, {
15119
+ sx: titleStyle,
15120
+ variant: "h2",
15121
+ component: step.panelTitleComponent || "h3",
15122
+ children: ["Step ", index + 1, " : ", step.panelTitle]
15123
+ }), (step == null ? void 0 : step.panelDescription) && /*#__PURE__*/jsx(Typography, {
15124
+ sx: {
15125
+ mb: _cardContent ? 0 : 2
15126
+ },
15127
+ variant: "body1",
15128
+ component: "p",
15129
+ children: step.panelDescription
15130
+ })]
15131
+ });
15132
+ };
15133
+ PanelTitleAndDescription.propTypes = {
15134
+ index: PropTypes.number,
15135
+ step: PropTypes.shape({
15136
+ panelTitle: PropTypes.any,
15137
+ panelTitleComponent: PropTypes.string,
15138
+ panelDescription: PropTypes.string
15139
+ }),
15140
+ cardContent: PropTypes.bool
15141
+ };
15107
15142
 
15108
15143
  /** Component to display a "stepper" wizard panel for multiple step processes with swipeable tabs. Designed to be display within a Drawer component. */
15109
15144
 
@@ -15144,7 +15179,7 @@ const WizardPanel = props => {
15144
15179
  left: 0,
15145
15180
  right: 0,
15146
15181
  bottom: 64,
15147
- top: 178
15182
+ top: 162
15148
15183
  };
15149
15184
  const containerStyle = {
15150
15185
  backgroundColor: props.cardContent ? "rgb(239, 242, 246)" : "rgb(255,255,255)"
@@ -15177,11 +15212,6 @@ const WizardPanel = props => {
15177
15212
  setIsCompleting(false);
15178
15213
  }
15179
15214
  }, [props.completed]);
15180
- const titleStyle = {
15181
- fontSize: "1.1rem",
15182
- fontWeight: 500,
15183
- mb: 2
15184
- };
15185
15215
  return /*#__PURE__*/jsxs(Fragment, {
15186
15216
  children: [/*#__PURE__*/jsx(AppBar$1, {
15187
15217
  position: props.display === "drawer" ? "sticky" : "relative",
@@ -15211,18 +15241,16 @@ const WizardPanel = props => {
15211
15241
  sx: {
15212
15242
  visibility: activeStep === index ? "visible" : "hidden"
15213
15243
  },
15214
- children: [step.panelTitle && /*#__PURE__*/jsxs(Typography, {
15215
- sx: titleStyle,
15216
- variant: "h2",
15217
- component: step.panelTitleComponent || "h3",
15218
- children: ["Step ", index + 1, " : ", step.panelTitle]
15219
- }), step.panelDescription && /*#__PURE__*/jsx(Typography, {
15220
- sx: {
15221
- mb: 2
15222
- },
15223
- variant: "body1",
15224
- component: "p",
15225
- children: step.panelDescription
15244
+ children: [(step.panelTitle || step.panelDescription) && props.cardContent && /*#__PURE__*/jsx(ContentBox, {
15245
+ children: /*#__PURE__*/jsx(PanelTitleAndDescription, {
15246
+ step: step,
15247
+ index: index,
15248
+ cardContent: true
15249
+ })
15250
+ }), (step.panelTitle || step.panelDescription) && !props.cardContent && /*#__PURE__*/jsx(PanelTitleAndDescription, {
15251
+ step: step,
15252
+ index: index,
15253
+ cardContent: false
15226
15254
  }), ((_step$completedItems = step.completedItems) == null ? void 0 : _step$completedItems.length) && /*#__PURE__*/jsx(CompletedItemList, {
15227
15255
  data: step.completedItems
15228
15256
  }), step.content]