@linagora/twake-icons 2.11.1 → 2.12.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/dist/index.js CHANGED
@@ -61,7 +61,7 @@ function Icon(props) {
61
61
  ...restProps
62
62
  }
63
63
  );
64
- const Svg = isFunction(icon) ? icon : makeSvgObject(icon);
64
+ const Svg = isFunction(icon) ? icon : typeof icon === "string" ? makeSvgObject(icon) : null;
65
65
  const _style = {
66
66
  ...style,
67
67
  ...color ? { fill: color } : {},
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@linagora/twake-icons",
3
3
  "type": "module",
4
- "version": "2.11.1",
4
+ "version": "2.12.0",
5
5
  "description": "Icon library for Twake applications — SVG icons and illustrations",
6
6
  "author": "Twake",
7
7
  "license": "MIT",
@@ -56,7 +56,7 @@
56
56
  "doc": "storybook dev -p 6007"
57
57
  },
58
58
  "peerDependencies": {
59
- "react": "^18"
59
+ "react": "^18 || ^19"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@storybook/addon-docs": "10.3.5",
@@ -64,12 +64,12 @@
64
64
  "@storybook/react": "10.3.5",
65
65
  "@storybook/react-vite": "10.3.5",
66
66
  "@svgr/cli": "8.1.0",
67
- "@types/react": "18.2.0",
67
+ "@types/react": "19.3.0",
68
68
  "cozy-tsconfig": "^2.0.0",
69
69
  "eslint": "10.5.0",
70
70
  "eslint-config-cozy-app": "^7.0.0",
71
- "react": "18.2.0",
72
- "react-dom": "18.2.0",
71
+ "react": "19.3.0",
72
+ "react-dom": "19.3.0",
73
73
  "storybook": "10.3.5",
74
74
  "svgo": "4.1.0",
75
75
  "svgstore-cli": "2.0.1",