@widergy/energy-ui 3.109.0 → 3.110.0

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.110.0](https://github.com/widergy/energy-ui/compare/v3.109.0...v3.110.0) (2025-10-07)
2
+
3
+
4
+ ### Features
5
+
6
+ * [COLB-77] utbuttongroup label and iconadornment fix ([#698](https://github.com/widergy/energy-ui/issues/698)) ([96b6af0](https://github.com/widergy/energy-ui/commit/96b6af0699daad00025b4982785e116f8649f6f3))
7
+
1
8
  # [3.109.0](https://github.com/widergy/energy-ui/compare/v3.108.0...v3.109.0) (2025-10-07)
2
9
 
3
10
 
@@ -13,6 +13,7 @@ var _utils = require("./utils");
13
13
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
14
14
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
15
15
  const IconAdornment = _ref => {
16
+ var _inputStyle$root;
16
17
  let {
17
18
  changeIconOnError = true,
18
19
  changeOnError,
@@ -34,7 +35,7 @@ const IconAdornment = _ref => {
34
35
  size: _constants.ICON_SIZE
35
36
  }, (0, _utils.getIconColorProps)(effectiveChangeOnError, changeOnFocus, colorTheme, error, focused, shade))) : /*#__PURE__*/_react.default.createElement(Icon, {
36
37
  size: _constants.ICON_SIZE,
37
- fill: inputStyle.root.color
38
+ fill: inputStyle === null || inputStyle === void 0 || (_inputStyle$root = inputStyle.root) === null || _inputStyle$root === void 0 ? void 0 : _inputStyle$root.color
38
39
  });
39
40
  };
40
41
  IconAdornment.propTypes = {
@@ -29,7 +29,8 @@ const UTButtonGroup = _ref => {
29
29
  dataTestId,
30
30
  Icon,
31
31
  id,
32
- onClick
32
+ onClick,
33
+ label
33
34
  } = _ref2;
34
35
  return /*#__PURE__*/_react.default.createElement(_UTButton.default, {
35
36
  colorTheme: colorTheme,
@@ -39,13 +40,15 @@ const UTButtonGroup = _ref => {
39
40
  onClick: onClick,
40
41
  size: size,
41
42
  variant: selected === id ? 'filled' : 'text'
42
- });
43
+ }, label);
43
44
  }));
44
45
  };
45
46
  UTButtonGroup.propTypes = {
46
47
  actions: (0, _propTypes.arrayOf)((0, _propTypes.shape)({
48
+ dataTestId: _propTypes.string,
47
49
  Icon: (0, _propTypes.oneOfType)([_propTypes.string, _propTypes.element]),
48
50
  id: (0, _propTypes.oneOfType)([_propTypes.number, _propTypes.string]),
51
+ label: _propTypes.string,
49
52
  onClick: _propTypes.func
50
53
  })).isRequired,
51
54
  classes: (0, _propTypes.objectOf)(_propTypes.string),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@widergy/energy-ui",
3
- "version": "3.109.0",
3
+ "version": "3.110.0",
4
4
  "description": "Widergy Web Components",
5
5
  "author": "widergy",
6
6
  "license": "MIT",