@linagora/twake-icons 2.6.3 → 2.6.4

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.4](https://github.com/linagora/twake-ui/compare/@linagora/twake-icons@2.6.3...@linagora/twake-icons@2.6.4) (2026-06-24)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **twake-icons:** Ensure runtime style injection survives the build ([902e6e9](https://github.com/linagora/twake-ui/commit/902e6e9bb0498438c7fc0872bb8b334211626440))
7
+
1
8
  ## @linagora/twake-icons [2.6.3](https://github.com/linagora/twake-ui/compare/@linagora/twake-icons@2.6.2...@linagora/twake-icons@2.6.3) (2026-06-24)
2
9
 
3
10
 
package/dist/index.cjs CHANGED
@@ -434,6 +434,24 @@ module.exports = __toCommonJS(index_exports);
434
434
 
435
435
  // src/Icon/index.tsx
436
436
  var import_react = __toESM(require("react"), 1);
437
+
438
+ // src/Icon/styles.ts
439
+ var doc = globalThis.document;
440
+ if (doc) {
441
+ const style = doc.createElement("style");
442
+ style.textContent = `
443
+ @keyframes twake-icon-spin {
444
+ from { transform: rotate(0deg) translateZ(0); }
445
+ to { transform: rotate(360deg) translateZ(0); }
446
+ }
447
+ .twake-icon { fill: currentColor; transform: translateZ(0); }
448
+ .twake-icon--preserveColor { fill: inherit; }
449
+ .twake-icon--spin { animation: twake-icon-spin 1s linear infinite; }
450
+ `;
451
+ doc.head.appendChild(style);
452
+ }
453
+
454
+ // src/Icon/index.tsx
437
455
  var DEFAULT_SIZE = "16";
438
456
  function makeSvgObject(icon) {
439
457
  const anchor = icon.startsWith("#") ? icon : `#${icon}`;
package/dist/index.js CHANGED
@@ -1,5 +1,23 @@
1
1
  // src/Icon/index.tsx
2
2
  import React from "react";
3
+
4
+ // src/Icon/styles.ts
5
+ var doc = globalThis.document;
6
+ if (doc) {
7
+ const style = doc.createElement("style");
8
+ style.textContent = `
9
+ @keyframes twake-icon-spin {
10
+ from { transform: rotate(0deg) translateZ(0); }
11
+ to { transform: rotate(360deg) translateZ(0); }
12
+ }
13
+ .twake-icon { fill: currentColor; transform: translateZ(0); }
14
+ .twake-icon--preserveColor { fill: inherit; }
15
+ .twake-icon--spin { animation: twake-icon-spin 1s linear infinite; }
16
+ `;
17
+ doc.head.appendChild(style);
18
+ }
19
+
20
+ // src/Icon/index.tsx
3
21
  var DEFAULT_SIZE = "16";
4
22
  function makeSvgObject(icon) {
5
23
  const anchor = icon.startsWith("#") ? icon : `#${icon}`;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@linagora/twake-icons",
3
3
  "type": "module",
4
- "version": "2.6.3",
4
+ "version": "2.6.4",
5
5
  "description": "Icon library for Twake applications — SVG icons and illustrations",
6
6
  "author": "Twake",
7
7
  "license": "MIT",
@@ -29,9 +29,7 @@
29
29
  "main": "dist/index.cjs",
30
30
  "module": "dist/index.js",
31
31
  "types": "dist/index.d.ts",
32
- "sideEffects": [
33
- "dist/Icon/styles.js"
34
- ],
32
+ "sideEffects": true,
35
33
  "files": [
36
34
  "dist",
37
35
  "README.md",