@widergy/energy-ui 3.147.0 → 3.148.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.148.0](https://github.com/widergy/energy-ui/compare/v3.147.0...v3.148.0) (2026-05-05)
2
+
3
+
4
+ ### Features
5
+
6
+ * [AXCH-1221] add expandable-panel-fix ([#788](https://github.com/widergy/energy-ui/issues/788)) ([fd23950](https://github.com/widergy/energy-ui/commit/fd23950f23855bac2a7b8e67a452cced6267d697))
7
+
1
8
  # [3.147.0](https://github.com/widergy/energy-ui/compare/v3.146.0...v3.147.0) (2026-05-04)
2
9
 
3
10
 
@@ -171,18 +171,6 @@ var _default = exports.default = {
171
171
  }
172
172
  }
173
173
  },
174
- autoExpand: {
175
- control: 'boolean',
176
- description: '(V1 only) Si es true, expande automáticamente el primer item de additionalContent.',
177
- table: {
178
- defaultValue: {
179
- summary: 'true'
180
- },
181
- type: {
182
- summary: 'boolean'
183
- }
184
- }
185
- },
186
174
  open: {
187
175
  control: 'boolean',
188
176
  description: 'Controla si el panel está abierto o cerrado.',
@@ -28,7 +28,6 @@ const UTPanel = _ref => {
28
28
  var _classes$bodyContaine;
29
29
  let {
30
30
  additionalContent,
31
- autoExpand = true,
32
31
  backButtonDataTestId = panel.backButton,
33
32
  BackdropProps = {},
34
33
  children,
@@ -80,11 +79,10 @@ const UTPanel = _ref => {
80
79
  const [activeAdditionalContentId, setActiveAdditionalContentId] = (0, _react.useState)(null);
81
80
  (0, _react.useEffect)(() => {
82
81
  if (additionalContent && additionalContent.length > 0) {
83
- if (autoExpand) setActiveAdditionalContentId(additionalContent[0].id);
84
- } else {
85
- setActiveAdditionalContentId(null);
82
+ var _additionalContent$;
83
+ if ((_additionalContent$ = additionalContent[0]) !== null && _additionalContent$ !== void 0 && _additionalContent$.collapse) setActiveAdditionalContentId(null);else setActiveAdditionalContentId(additionalContent[0].id);
86
84
  }
87
- }, [additionalContent, autoExpand]);
85
+ }, [additionalContent]);
88
86
  const panelIsCollapsible = collapsablePanel && inline;
89
87
  const panelIsCollapsed = panelIsCollapsible && !open;
90
88
  const hasAdditionalContent = !(0, _isEmpty.default)(additionalContent);
@@ -198,7 +196,6 @@ UTPanel.propTypes = {
198
196
  BodyComponent: _propTypes.elementType.isRequired,
199
197
  tooltipProps: _propTypes.object.isRequired
200
198
  })),
201
- autoExpand: _propTypes.bool,
202
199
  backButtonDataTestId: _propTypes.string,
203
200
  BackdropProps: _propTypes.object,
204
201
  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.147.0",
3
+ "version": "3.148.0",
4
4
  "description": "Widergy Web Components",
5
5
  "author": "widergy",
6
6
  "license": "MIT",