@linagora/twake-icons 2.1.0 → 2.2.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
+ # [2.2.0](https://github.com/linagora/twake-ui/compare/v2.1.0...v2.2.0) (2026-06-16)
2
+
3
+
4
+ ### Features
5
+
6
+ * **twake-icons:** Inject spin keyframes in JS for bundler compatibility ([3538fb2](https://github.com/linagora/twake-ui/commit/3538fb2df18e0989e00a298c7e50336b8c0fd376))
7
+
1
8
  # [2.1.0](https://github.com/linagora/twake-ui/compare/v2.0.0...v2.1.0) (2026-06-15)
2
9
 
3
10
 
@@ -1,4 +1,3 @@
1
1
  import { CSSProperties } from 'react';
2
- import './styles.css';
3
2
  export declare const iconBaseStyle: CSSProperties;
4
3
  export declare const iconSpinStyle: CSSProperties;
@@ -1,4 +1,14 @@
1
- import './styles.css';
1
+ // Inject spin keyframes once at module load (SSR-safe)
2
+ if (typeof document !== 'undefined') {
3
+ const style = document.createElement('style');
4
+ style.textContent = `
5
+ @keyframes twake-icon-spin {
6
+ from { transform: rotate(0deg) translateZ(0); }
7
+ to { transform: rotate(360deg) translateZ(0); }
8
+ }
9
+ `;
10
+ document.head.appendChild(style);
11
+ }
2
12
  export const iconBaseStyle = {
3
13
  fill: 'currentColor',
4
14
  // Fix blurry icons on Firefox
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@linagora/twake-icons",
3
3
  "type": "module",
4
- "version": "2.1.0",
4
+ "version": "2.2.0",
5
5
  "description": "Icon library for Twake applications — SVG icons and illustrations",
6
6
  "author": "Twake",
7
7
  "license": "MIT",
@@ -27,6 +27,7 @@
27
27
  },
28
28
  "main": "dist/index.js",
29
29
  "types": "dist/index.d.ts",
30
+ "sideEffects": false,
30
31
  "files": [
31
32
  "dist",
32
33
  "README.md",