@widergy/energy-ui 3.166.0 → 3.166.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,16 +1,25 @@
1
- # [3.166.0](https://github.com/widergy/energy-ui/compare/v3.165.1...v3.166.0) (2026-06-12)
1
+ ## [3.166.1](https://github.com/widergy/energy-ui/compare/v3.166.0...v3.166.1) (2026-06-16)
2
2
 
3
3
 
4
- ### Features
4
+ ### Bug Fixes
5
+
6
+ * [CX-2433] incompatibility dynamic size icon fixes ([#817](https://github.com/widergy/energy-ui/issues/817)) ([7c2bf6c](https://github.com/widergy/energy-ui/commit/7c2bf6cd0e789d56797236702385c7fd657c15d8))
5
7
 
6
- * [AUTO-271] Add test ids to case panel detail ([#809](https://github.com/widergy/energy-ui/issues/809)) ([d2413bb](https://github.com/widergy/energy-ui/commit/d2413bb084b1ae70de41800edd347450e836d94e))
8
+ # [3.166.0](https://github.com/widergy/energy-ui/compare/v3.165.1...v3.166.0) (2026-06-12)
9
+
10
+ ### Novedades y Mejoras
11
+
12
+ * Mejoras internas de la plataforma. [#809](https://github.com/widergy/Energy-UI/pull/809) [AUTO-271](https://widergy.atlassian.net/browse/AUTO-271)
7
13
 
8
14
  ## [3.165.1](https://github.com/widergy/energy-ui/compare/v3.165.0...v3.165.1) (2026-06-12)
9
15
 
16
+ ### Novedades y Mejoras
10
17
 
11
- ### Bug Fixes
12
18
 
13
- * added prop position to snackbar ([#818](https://github.com/widergy/energy-ui/issues/818)) ([676e43c](https://github.com/widergy/energy-ui/commit/676e43c4d625578b074506867879b0b8bdbe75ea))
19
+
20
+ ### Correcciones
21
+
22
+ * El componente de notificaciones emergentes ahora permite elegir entre cuatro posiciones en pantalla: inferior izquierda, inferior derecha, superior izquierda y superior derecha. [#818](https://github.com/widergy/Energy-UI/pull/818) [DIS-1106](https://widergy.atlassian.net/browse/DIS-1106)
14
23
 
15
24
  # [3.165.0](https://github.com/widergy/energy-ui/compare/v3.164.0...v3.165.0) (2026-06-10)
16
25
 
@@ -20,6 +20,7 @@ const FLAG_CODES = new Set(_countries.default.map(_ref => {
20
20
  return code;
21
21
  }));
22
22
  const flagComponentCache = {};
23
+ const isCSSVar = value => typeof value === 'string' && value.startsWith('var(');
23
24
  const getFlagComponent = code => {
24
25
  if (!(code in flagComponentCache)) {
25
26
  const loader = _flagsComponents.default[code];
@@ -65,25 +66,35 @@ const getIconProps = _ref3 => {
65
66
  theme,
66
67
  shade: fillShade || _constants.DEFAULT_INTERNAL_SHADE
67
68
  });
69
+ const sizeIsCSSVar = isCSSVar(size);
70
+ const resolvedSize = sizeIsCSSVar ? undefined : size;
71
+ const sizeStyle = sizeIsCSSVar ? {
72
+ width: size,
73
+ height: size
74
+ } : {};
75
+ const baseStyle = filled ? {
76
+ color: themeColor
77
+ } : style || {};
68
78
  const defaultIconProps = {
69
79
  color: iconColor,
70
- size
80
+ size: resolvedSize
71
81
  };
72
82
  const energyIconProps = {
73
83
  stroke: iconColor,
74
- ...(size && {
75
- width: size,
76
- height: size
84
+ ...(resolvedSize && {
85
+ width: resolvedSize,
86
+ height: resolvedSize
77
87
  })
78
88
  };
79
89
  const flagProps = {
80
- width: size || 24,
81
- height: size || 24
90
+ width: resolvedSize || 24,
91
+ height: resolvedSize || 24
82
92
  };
83
93
  return {
84
- style: filled ? {
85
- color: themeColor
86
- } : style,
94
+ style: {
95
+ ...baseStyle,
96
+ ...sizeStyle
97
+ },
87
98
  ...(internalFill && {
88
99
  fill: internalFill
89
100
  }),
@@ -12,6 +12,7 @@ const FLAG_CODES = new Set(countries.map(_ref => {
12
12
  return code;
13
13
  }));
14
14
  const flagComponentCache = {};
15
+ const isCSSVar = value => typeof value === 'string' && value.startsWith('var(');
15
16
  const getFlagComponent = code => {
16
17
  if (!(code in flagComponentCache)) {
17
18
  const loader = flagComponentMap[code];
@@ -56,25 +57,35 @@ export const getIconProps = _ref3 => {
56
57
  theme,
57
58
  shade: fillShade || DEFAULT_INTERNAL_SHADE
58
59
  });
60
+ const sizeIsCSSVar = isCSSVar(size);
61
+ const resolvedSize = sizeIsCSSVar ? undefined : size;
62
+ const sizeStyle = sizeIsCSSVar ? {
63
+ width: size,
64
+ height: size
65
+ } : {};
66
+ const baseStyle = filled ? {
67
+ color: themeColor
68
+ } : style || {};
59
69
  const defaultIconProps = {
60
70
  color: iconColor,
61
- size
71
+ size: resolvedSize
62
72
  };
63
73
  const energyIconProps = {
64
74
  stroke: iconColor,
65
- ...(size && {
66
- width: size,
67
- height: size
75
+ ...(resolvedSize && {
76
+ width: resolvedSize,
77
+ height: resolvedSize
68
78
  })
69
79
  };
70
80
  const flagProps = {
71
- width: size || 24,
72
- height: size || 24
81
+ width: resolvedSize || 24,
82
+ height: resolvedSize || 24
73
83
  };
74
84
  return {
75
- style: filled ? {
76
- color: themeColor
77
- } : style,
85
+ style: {
86
+ ...baseStyle,
87
+ ...sizeStyle
88
+ },
78
89
  ...(internalFill && {
79
90
  fill: internalFill
80
91
  }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@widergy/energy-ui",
3
- "version": "3.166.0",
3
+ "version": "3.166.1",
4
4
  "description": "Widergy Web Components",
5
5
  "author": "widergy",
6
6
  "license": "MIT",