@udixio/tailwind 2.3.6 → 2.3.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,17 @@
1
+ ## 2.3.7 (2025-10-17)
2
+
3
+ ### 🩹 Fixes
4
+
5
+ - **theme, plugins-tailwind:** improve container caching and enhance debugging logs ([a8f955d](https://github.com/Udixio/UI/commit/a8f955d))
6
+
7
+ ### 🧱 Updated Dependencies
8
+
9
+ - Updated @udixio/theme to 2.1.2
10
+
11
+ ### ❤️ Thank You
12
+
13
+ - Joël VIGREUX
14
+
1
15
  ## 2.3.6 (2025-10-17)
2
16
 
3
17
  ### 🩹 Fixes
@@ -1 +1 @@
1
- {"version":3,"file":"tailwind.plugin.d.ts","sourceRoot":"","sources":["../../src/browser/tailwind.plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAO/E,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IAC7B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,qBAAqB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC/C,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACpC;AAgFD,qBAAa,cAAe,SAAQ,cAAc,CAChD,yBAAyB,EACzB,qBAAqB,CACtB;IACQ,YAAY,wBAAgB;IAC5B,IAAI,SAAc;IACzB,WAAW,mCAA6B;CACzC;AAED,qBAAa,yBAA0B,SAAQ,kBAAkB,CAAC,qBAAqB,CAAC;IAC/E,SAAS,SAAM;IAEtB,MAAM;IAeN,SAAS,CAAC,EAAE,SAAS,EAAE,EAAE;QAAE,SAAS,EAAE,OAAO,CAAA;KAAE;IA+E/C,SAAS;eAC+B,MAAM;cAAQ,MAAM;;IAetD,MAAM;CAYb"}
1
+ {"version":3,"file":"tailwind.plugin.d.ts","sourceRoot":"","sources":["../../src/browser/tailwind.plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAO/E,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IAC7B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,qBAAqB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC/C,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACpC;AAgFD,qBAAa,cAAe,SAAQ,cAAc,CAChD,yBAAyB,EACzB,qBAAqB,CACtB;IACQ,YAAY,wBAAgB;IAC5B,IAAI,SAAc;IACzB,WAAW,mCAA6B;CACzC;AAED,qBAAa,yBAA0B,SAAQ,kBAAkB,CAAC,qBAAqB,CAAC;IAC/E,SAAS,SAAM;IAEtB,MAAM;IAeN,SAAS,CAAC,EAAE,SAAS,EAAE,EAAE;QAAE,SAAS,EAAE,OAAO,CAAA;KAAE;IAkF/C,SAAS;eAC+B,MAAM;cAAQ,MAAM;;IAetD,MAAM;CAYb"}
package/dist/browser.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const tailwind_plugin = require("./tailwind.plugin-CEGlpiFj.cjs");
3
+ const tailwind_plugin = require("./tailwind.plugin-D7mbDtcZ.cjs");
4
4
  exports.TailwindImplPluginBrowser = tailwind_plugin.TailwindImplPluginBrowser;
5
5
  exports.TailwindPlugin = tailwind_plugin.TailwindPlugin;
6
6
  exports.animation = tailwind_plugin.animation;
package/dist/browser.js CHANGED
@@ -1,5 +1,5 @@
1
- import { m as main } from "./tailwind.plugin-Bvh5RFHQ.js";
2
- import { T, b, a, f, s } from "./tailwind.plugin-Bvh5RFHQ.js";
1
+ import { m as main } from "./tailwind.plugin-WLIf7Hf5.js";
2
+ import { T, b, a, f, s } from "./tailwind.plugin-WLIf7Hf5.js";
3
3
  export {
4
4
  T as TailwindImplPluginBrowser,
5
5
  b as TailwindPlugin,
package/dist/node.cjs CHANGED
@@ -24,7 +24,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
24
24
  ));
25
25
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
26
26
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
27
- const tailwind_plugin = require("./tailwind.plugin-CEGlpiFj.cjs");
27
+ const tailwind_plugin = require("./tailwind.plugin-D7mbDtcZ.cjs");
28
28
  const theme = require("@udixio/theme");
29
29
  const fs = require("fs");
30
30
  const console = require("node:console");
package/dist/node.js CHANGED
@@ -1,8 +1,8 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
3
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
- import { T as TailwindImplPluginBrowser, m as main } from "./tailwind.plugin-Bvh5RFHQ.js";
5
- import { a, f, s } from "./tailwind.plugin-Bvh5RFHQ.js";
4
+ import { T as TailwindImplPluginBrowser, m as main } from "./tailwind.plugin-WLIf7Hf5.js";
5
+ import { a, f, s } from "./tailwind.plugin-WLIf7Hf5.js";
6
6
  import { PluginAbstract, FontPlugin } from "@udixio/theme";
7
7
  import * as fs from "fs";
8
8
  import * as console from "node:console";
@@ -728,9 +728,11 @@ class TailwindImplPluginBrowser extends theme.PluginImplAbstract {
728
728
  }`;
729
729
  const sourceColor = this.api.context.sourceColor;
730
730
  const originalSourceColorHex = materialColorUtilities.hexFromArgb(sourceColor.toInt());
731
+ console.log("to subthmes", this.api.context.id);
731
732
  for (const [key, value] of Object.entries(this.options.subThemes ?? {})) {
732
733
  const newHue = materialColorUtilities.Hct.fromInt(materialColorUtilities.argbFromHex(value)).hue;
733
734
  const newColor = materialColorUtilities.Hct.from(newHue, sourceColor.chroma, sourceColor.tone);
735
+ console.log("newColor", materialColorUtilities.hexFromArgb(newColor.toInt()));
734
736
  this.api.context.sourceColor = materialColorUtilities.hexFromArgb(newColor.toInt());
735
737
  const colors2 = this.getColors();
736
738
  this.outputCss += `
@@ -750,6 +752,7 @@ class TailwindImplPluginBrowser extends theme.PluginImplAbstract {
750
752
  })}
751
753
  }`;
752
754
  }
755
+ console.log("finish");
753
756
  this.api.context.sourceColor = originalSourceColorHex;
754
757
  }
755
758
  getColors() {
@@ -727,9 +727,11 @@ class TailwindImplPluginBrowser extends PluginImplAbstract {
727
727
  }`;
728
728
  const sourceColor = this.api.context.sourceColor;
729
729
  const originalSourceColorHex = hexFromArgb(sourceColor.toInt());
730
+ console.log("to subthmes", this.api.context.id);
730
731
  for (const [key, value] of Object.entries(this.options.subThemes ?? {})) {
731
732
  const newHue = Hct.fromInt(argbFromHex(value)).hue;
732
733
  const newColor = Hct.from(newHue, sourceColor.chroma, sourceColor.tone);
734
+ console.log("newColor", hexFromArgb(newColor.toInt()));
733
735
  this.api.context.sourceColor = hexFromArgb(newColor.toInt());
734
736
  const colors2 = this.getColors();
735
737
  this.outputCss += `
@@ -749,6 +751,7 @@ class TailwindImplPluginBrowser extends PluginImplAbstract {
749
751
  })}
750
752
  }`;
751
753
  }
754
+ console.log("finish");
752
755
  this.api.context.sourceColor = originalSourceColorHex;
753
756
  }
754
757
  getColors() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@udixio/tailwind",
3
- "version": "2.3.6",
3
+ "version": "2.3.7",
4
4
  "type": "module",
5
5
  "main": "./dist/node.js",
6
6
  "module": "./dist/node.js",
@@ -31,7 +31,7 @@
31
31
  "chalk": "^5.6.0",
32
32
  "pathe": "^2.0.3",
33
33
  "tslib": "^2.3.0",
34
- "@udixio/theme": "2.1.1"
34
+ "@udixio/theme": "2.1.2"
35
35
  },
36
36
  "repository": {
37
37
  "type": "git",
@@ -165,10 +165,13 @@ export class TailwindImplPluginBrowser extends PluginImplAbstract<TailwindPlugin
165
165
  const sourceColor = this.api.context.sourceColor;
166
166
  const originalSourceColorHex = hexFromArgb(sourceColor.toInt());
167
167
 
168
+ console.log('to subthmes', this.api.context.id);
168
169
  for (const [key, value] of Object.entries(this.options.subThemes ?? {})) {
169
170
  const newHue = Hct.fromInt(argbFromHex(value)).hue;
170
171
  const newColor = Hct.from(newHue, sourceColor.chroma, sourceColor.tone);
171
172
 
173
+ console.log('newColor', hexFromArgb(newColor.toInt()));
174
+
172
175
  this.api.context.sourceColor = hexFromArgb(newColor.toInt());
173
176
  const colors = this.getColors();
174
177
  this.outputCss += `
@@ -193,7 +196,7 @@ export class TailwindImplPluginBrowser extends PluginImplAbstract<TailwindPlugin
193
196
  })}
194
197
  }`;
195
198
  }
196
-
199
+ console.log('finish');
197
200
  // Restore original sourceColor after processing subThemes
198
201
  this.api.context.sourceColor = originalSourceColorHex;
199
202
  }