@widergy/energy-ui 3.52.0 → 3.52.1

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 CHANGED
@@ -1,3 +1,10 @@
1
+ ## [3.52.1](https://github.com/widergy/energy-ui/compare/v3.52.0...v3.52.1) (2025-01-08)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * [EVE-4364] status message header ([#550](https://github.com/widergy/energy-ui/issues/550)) ([eff5b7b](https://github.com/widergy/energy-ui/commit/eff5b7b2535e8273a14cfce6b6cfc7e1f096de4d))
7
+
1
8
  # [3.52.0](https://github.com/widergy/energy-ui/compare/v3.51.3...v3.52.0) (2025-01-07)
2
9
 
3
10
 
@@ -15,7 +15,7 @@ The purpose of this component, as its name indicates, is to communicate a messag
15
15
  | helpTextProps | object | | Props to be applied to the help text UTLabel. |
16
16
  | icon | string | | Icon to be displayed in the header. |
17
17
  | iconProps | object | | Props to be applied to the UTIcon |
18
- | image | string | | URL of an image to be displayed in the header, replacing the icon. |
18
+ | HeaderComponent | element | | Component to be displayed in the header, replacing the icon. |
19
19
  | loading | bool | false | Indicates whether the component is in a loading state. Replaces the header. |
20
20
  | primaryAction | func | | Callback function for the primary action. |
21
21
  | primaryActionProps | object | | Props to be applied to the primary action UTButton. |
@@ -23,11 +23,11 @@ const UTStatusMessage = _ref => {
23
23
  colorTheme = _constants.COLOR_THEMES.DEFAULT,
24
24
  description,
25
25
  descriptionProps,
26
+ HeaderComponent,
26
27
  helpText,
27
28
  helpTextProps,
28
29
  icon = 'IconInfoCircle',
29
30
  iconProps = {},
30
- image,
31
31
  loading,
32
32
  primaryAction,
33
33
  primaryActionProps,
@@ -46,11 +46,7 @@ const UTStatusMessage = _ref => {
46
46
  text: null
47
47
  }) : showHeader ? /*#__PURE__*/_react.default.createElement("div", {
48
48
  className: classes.banner
49
- }, image ? /*#__PURE__*/_react.default.createElement("img", {
50
- src: image,
51
- className: "".concat(_stylesModule.default.image, " ").concat(classes.image),
52
- alt: ""
53
- }) : /*#__PURE__*/_react.default.createElement("div", {
49
+ }, HeaderComponent ? /*#__PURE__*/_react.default.createElement(HeaderComponent, null) : /*#__PURE__*/_react.default.createElement("div", {
54
50
  className: classes.iconContainer
55
51
  }, /*#__PURE__*/_react.default.createElement(_UTIcon.default, _extends({
56
52
  name: icon,
@@ -86,11 +82,11 @@ UTStatusMessage.propTypes = {
86
82
  colorTheme: _propTypes.string,
87
83
  description: _propTypes.string,
88
84
  descriptionProps: _propTypes.object,
85
+ HeaderComponent: _propTypes.element,
89
86
  helpText: _propTypes.string,
90
87
  helpTextProps: _propTypes.object,
91
88
  icon: _propTypes.string,
92
89
  iconProps: _propTypes.object,
93
- image: _propTypes.string,
94
90
  loading: _propTypes.bool,
95
91
  primaryAction: _propTypes.func,
96
92
  primaryActionProps: _propTypes.object,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@widergy/energy-ui",
3
- "version": "3.52.0",
3
+ "version": "3.52.1",
4
4
  "description": "Widergy Web Components",
5
5
  "author": "widergy",
6
6
  "license": "MIT",