aefis-core-ui 3.0.0-rc117 → 3.0.0-rc119

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.
@@ -6578,6 +6578,7 @@ const ContentBox = ({
6578
6578
  titleComponent: _titleComponent = "div",
6579
6579
  avatar,
6580
6580
  description,
6581
+ descriptionVariant: _descriptionVariant = "body2",
6581
6582
  actions,
6582
6583
  afterActionContent,
6583
6584
  displayType: _displayType = "default",
@@ -6848,7 +6849,7 @@ const ContentBox = ({
6848
6849
  }, otherSx, cardContentSx),
6849
6850
  children: _collapsible ? /*#__PURE__*/jsxs(CollapsibleContentContainer, {
6850
6851
  children: [description && /*#__PURE__*/jsx(Typography, {
6851
- variant: "body2",
6852
+ variant: _descriptionVariant,
6852
6853
  sx: {
6853
6854
  color: "text.secondary"
6854
6855
  },
@@ -6859,7 +6860,7 @@ const ContentBox = ({
6859
6860
  })]
6860
6861
  }) : /*#__PURE__*/jsxs(React__default.Fragment, {
6861
6862
  children: [description && /*#__PURE__*/jsx(Typography, {
6862
- variant: "body2",
6863
+ variant: _descriptionVariant,
6863
6864
  sx: {
6864
6865
  color: "text.secondary"
6865
6866
  },
@@ -6871,7 +6872,7 @@ const ContentBox = ({
6871
6872
  })
6872
6873
  }), !_formatContent && /*#__PURE__*/jsxs(React__default.Fragment, {
6873
6874
  children: [description && /*#__PURE__*/jsx(Typography, {
6874
- variant: "body2",
6875
+ variant: _descriptionVariant,
6875
6876
  sx: {
6876
6877
  color: "text.secondary"
6877
6878
  },
@@ -6945,6 +6946,8 @@ ContentBox.propTypes = {
6945
6946
  avatar: PropTypes.any,
6946
6947
  /** Description text to be displayed in the body of the content box. Can be a string or any component. */
6947
6948
  description: PropTypes.any,
6949
+ /** Typography variant for the description. */
6950
+ descriptionVariant: PropTypes.string,
6948
6951
  /** Component to display in the footer of the content box. */
6949
6952
  actions: PropTypes.any,
6950
6953
  /** Content to display after the content box actions. */
@@ -9034,6 +9037,7 @@ const AvatarTitle = /*#__PURE__*/React__default.memo(function AvatarTitle({
9034
9037
  type = "default",
9035
9038
  avatar,
9036
9039
  avatarVariant = "round",
9040
+ displayAvatar = true,
9037
9041
  title,
9038
9042
  titleComponent = "div",
9039
9043
  subtitle,
@@ -9164,7 +9168,7 @@ const AvatarTitle = /*#__PURE__*/React__default.memo(function AvatarTitle({
9164
9168
  sx: {
9165
9169
  display: "flex"
9166
9170
  },
9167
- children: [/*#__PURE__*/jsxs(Box$2, {
9171
+ children: [displayAvatar && /*#__PURE__*/jsxs(Box$2, {
9168
9172
  sx: avatarContainerStyle,
9169
9173
  children: [size === "xsmall" && /*#__PURE__*/jsx(XSmallAvatar, {
9170
9174
  className: classes.avatar,
@@ -9227,6 +9231,8 @@ AvatarTitle.propTypes = {
9227
9231
  avatar: PropTypes.any,
9228
9232
  /** The variant of the avatar. */
9229
9233
  avatarVariant: PropTypes.oneOf(["round", "square"]),
9234
+ /** Display the avatar? */
9235
+ displayAvatar: PropTypes.bool,
9230
9236
  /** String or object. Generally, stick to a string unless otherwise necessary. */
9231
9237
  title: PropTypes.any,
9232
9238
  /** HTML DOM object for the title. */