@linagora/twake-icons 2.6.6 → 2.6.7

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
+ ## @linagora/twake-icons [2.6.7](https://github.com/linagora/twake-ui/compare/@linagora/twake-icons@2.6.6...@linagora/twake-icons@2.6.7) (2026-07-01)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * Allow any React component to be rendered in Icon ([d3bdaa4](https://github.com/linagora/twake-ui/commit/d3bdaa498f4b4a91ad489b678369a78345d52dba))
7
+
1
8
  ## @linagora/twake-icons [2.6.6](https://github.com/linagora/twake-ui/compare/@linagora/twake-icons@2.6.5...@linagora/twake-icons@2.6.6) (2026-06-25)
2
9
 
3
10
 
package/dist/index.cjs CHANGED
@@ -480,9 +480,7 @@ function Icon(props) {
480
480
  } = props;
481
481
  if (!icon) return null;
482
482
  if (import_react.default.isValidElement(icon)) {
483
- const isIconComp = icon.type === Icon;
484
- const isImg = icon.type === "img";
485
- if (isIconComp || isImg) return icon;
483
+ return icon;
486
484
  }
487
485
  const isPngPath = typeof icon === "string" && icon.includes(".png");
488
486
  if (isPngPath)
package/dist/index.js CHANGED
@@ -46,9 +46,7 @@ function Icon(props) {
46
46
  } = props;
47
47
  if (!icon) return null;
48
48
  if (React.isValidElement(icon)) {
49
- const isIconComp = icon.type === Icon;
50
- const isImg = icon.type === "img";
51
- if (isIconComp || isImg) return icon;
49
+ return icon;
52
50
  }
53
51
  const isPngPath = typeof icon === "string" && icon.includes(".png");
54
52
  if (isPngPath)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@linagora/twake-icons",
3
3
  "type": "module",
4
- "version": "2.6.6",
4
+ "version": "2.6.7",
5
5
  "description": "Icon library for Twake applications — SVG icons and illustrations",
6
6
  "author": "Twake",
7
7
  "license": "MIT",