@widergy/energy-ui 3.119.0 → 3.119.2

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,17 @@
1
+ ## [3.119.2](https://github.com/widergy/energy-ui/compare/v3.119.1...v3.119.2) (2025-11-07)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * add hideheader to utactioncard ([#719](https://github.com/widergy/energy-ui/issues/719)) ([7f0b7ca](https://github.com/widergy/energy-ui/commit/7f0b7ca9c0ad521d5a8b83a9c5d0d6c7bd8f7a7c))
7
+
8
+ ## [3.119.1](https://github.com/widergy/energy-ui/compare/v3.119.0...v3.119.1) (2025-11-07)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * theme ut status ([#717](https://github.com/widergy/energy-ui/issues/717)) ([8699b3d](https://github.com/widergy/energy-ui/commit/8699b3dfa58657b75ec3cfe00a2f14fb8fd6168f))
14
+
1
15
  # [3.119.0](https://github.com/widergy/energy-ui/compare/v3.118.0...v3.119.0) (2025-11-05)
2
16
 
3
17
 
@@ -15,6 +15,7 @@
15
15
  | `descriptionProps` | `shape({ colorTheme: string, variant: string })` | | Props to customize the description's style. |
16
16
  | `headerActions` | `arrayOf(shape({ Icon: oneOfType([elementType, string]), iconProps: string, id: oneOfType([number, string]), label: string, loading: bool, onClick: func }))` | | List of actions available in the header section. |
17
17
  | `headerActionsProps` | `shape({ alignment: oneOf(['center', 'end', 'start']), buttonGroupProps: shape({ colorTheme: string, shape: string }), variant: oneOf(['default', 'buttonGroup']) })` | | Props to configure header actions alignment, button group, etc. |
18
+ | `hideHeader` | `bool` | `false` | Hides the header section of the card. |
18
19
  | `mainAction` | `func` | | Main action function for the card. |
19
20
  | `size` | `oneOf(['medium', 'small'])` | `'medium'` | Size of the card, either small or medium. |
20
21
  | `status` | `string` | | Status text to be displayed. |
@@ -32,6 +32,7 @@ const UTActionCard = _ref => {
32
32
  headerActionsProps = {
33
33
  variant: _constants.HEADER_ACTIONS_VARIANTS.DEFAULT
34
34
  },
35
+ hideHeader = false,
35
36
  mainAction,
36
37
  size = _constants.SIZES.MEDIUM,
37
38
  status,
@@ -59,7 +60,7 @@ const UTActionCard = _ref => {
59
60
  "data-testid": backgroundDataTestId
60
61
  }), /*#__PURE__*/_react.default.createElement("div", {
61
62
  className: "".concat(_stylesModule.default.headerAndChildrenContainer, " ").concat(classNames.headerAndChildrenContainer)
62
- }, /*#__PURE__*/_react.default.createElement(_Header.default, {
63
+ }, !hideHeader && /*#__PURE__*/_react.default.createElement(_Header.default, {
63
64
  adornment,
64
65
  classNames,
65
66
  description,
@@ -76,7 +77,7 @@ const UTActionCard = _ref => {
76
77
  title,
77
78
  titleProps
78
79
  }), children && /*#__PURE__*/_react.default.createElement("div", {
79
- className: "".concat(withBodyPadding ? _stylesModule.default["bodyPadding-".concat(size)] : _stylesModule.default["withoutBodyPadding-".concat(size)])
80
+ className: "".concat(hideHeader ? _stylesModule.default.withoutHeader : '', " ").concat(withBodyPadding ? _stylesModule.default["bodyPadding-".concat(size)] : _stylesModule.default["withoutBodyPadding-".concat(size)])
80
81
  }, children))), !(0, _object.objectIsEmpty)(additionalMessage) && /*#__PURE__*/_react.default.createElement(_AdditionalMessage.default, _extends({}, additionalMessage, {
81
82
  size: size
82
83
  })), !(0, _array.isEmpty)(bottomActions) && /*#__PURE__*/_react.default.createElement(_BottomActions.default, {
@@ -136,6 +137,7 @@ UTActionCard.propTypes = {
136
137
  }),
137
138
  variant: (0, _propTypes.oneOf)([_constants.HEADER_ACTIONS_VARIANTS.DEFAULT, _constants.HEADER_ACTIONS_VARIANTS.BUTTON_GROUP])
138
139
  }),
140
+ hideHeader: _propTypes.bool,
139
141
  mainAction: _propTypes.func,
140
142
  size: (0, _propTypes.oneOf)([_constants.SIZES.MEDIUM, _constants.SIZES.SMALL]),
141
143
  status: _propTypes.string,
@@ -77,3 +77,7 @@ $default-shadow-gray-bottom-1: 0px 3px 6px rgba(24, 44, 73, 0.1);
77
77
  .withoutBodyPadding-medium {
78
78
  padding-bottom: 24px;
79
79
  }
80
+
81
+ .withoutHeader {
82
+ padding-top: 24px;
83
+ }
@@ -35,6 +35,7 @@ const DEFAULT_PROPS = exports.DEFAULT_PROPS = {
35
35
  size: 'medium',
36
36
  type: 'default',
37
37
  variant: 'success',
38
+ weight: 'medium',
38
39
  withoutIcon: false
39
40
  };
40
41
  const COMPONENT_KEYS = exports.COMPONENT_KEYS = {
@@ -33,6 +33,7 @@ const UTStatus = _ref => {
33
33
  tooltipProps = {},
34
34
  type = _constants.DEFAULT_PROPS.type,
35
35
  variant = _constants.DEFAULT_PROPS.variant,
36
+ weight = _constants.DEFAULT_PROPS.weight,
36
37
  withoutIcon
37
38
  } = _ref;
38
39
  const StatusIcon = Icon !== null && Icon !== void 0 ? Icon : (0, _theme.defaultIconMapper)(variant);
@@ -81,7 +82,7 @@ const UTStatus = _ref => {
81
82
  variant: (0, _theme.getLabelVariant)({
82
83
  size
83
84
  }),
84
- weight: "medium"
85
+ weight: weight
85
86
  }, children));
86
87
  return /*#__PURE__*/_react.default.createElement(_UTSkeleton.default, null, showTooltip ? /*#__PURE__*/_react.default.createElement(_UTTooltip.default, {
87
88
  content: tooltip,
@@ -109,6 +110,7 @@ UTStatus.propTypes = {
109
110
  tooltipProps: _propTypes.object,
110
111
  type: _propTypes.string,
111
112
  variant: _propTypes.string,
113
+ weight: _propTypes.string,
112
114
  withoutIcon: _propTypes.bool
113
115
  };
114
116
  var _default = exports.default = (0, _WithTheme.default)(_theme.retrieveStyle)(UTStatus);
@@ -130,7 +130,7 @@ const retrieveStyle = _ref7 => {
130
130
  }
131
131
  },
132
132
  badge: {
133
- backgroundColor: type === _constants.TYPES.negative ? "".concat(theme.Palette[variant !== _constants.VARIANTS.unassigned ? variant : _Palette.COLOR_THEMES.gray]['03'], " !important") : "".concat(theme.Palette[variant !== _constants.VARIANTS.unassigned ? variant : _Palette.COLOR_THEMES.gray]['04'], " !important")
133
+ backgroundColor: type === _constants.TYPES.negative ? "".concat(theme.Palette[variant !== _constants.VARIANTS.unassigned ? variant : _Palette.COLOR_THEMES.gray]['03'], " !important") : "".concat(theme.Palette[variant !== _constants.VARIANTS.unassigned ? variant : _Palette.COLOR_THEMES.gray][variant !== _constants.VARIANTS.error ? '03' : '04'], " !important")
134
134
  },
135
135
  adornmentIcon: {
136
136
  flexShrink: '0',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@widergy/energy-ui",
3
- "version": "3.119.0",
3
+ "version": "3.119.2",
4
4
  "description": "Widergy Web Components",
5
5
  "author": "widergy",
6
6
  "license": "MIT",