@udixio/tailwind 2.4.16 → 2.4.18
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 +20 -0
- package/dist/browser.cjs +1 -1
- package/dist/browser.js +2 -2
- package/dist/node.cjs +1 -1
- package/dist/node.js +2 -2
- package/dist/{tailwind.plugin-CMqXbpDC.js → tailwind.plugin-CaHiNZqB.js} +3 -3
- package/dist/{tailwind.plugin-DCCnMjHz.cjs → tailwind.plugin-DtXXUiCf.cjs} +2 -2
- package/package.json +2 -2
- package/src/browser/tailwind.plugin.ts +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,23 @@
|
|
|
1
|
+
## 2.4.18 (2026-03-22)
|
|
2
|
+
|
|
3
|
+
### 🚀 Features
|
|
4
|
+
|
|
5
|
+
- **theme:** enhance `sourceColor` flexibility and improve context handling ([9bb6068](https://github.com/Udixio/UI/commit/9bb6068))
|
|
6
|
+
|
|
7
|
+
### 🧱 Updated Dependencies
|
|
8
|
+
|
|
9
|
+
- Updated @udixio/theme to 2.1.18
|
|
10
|
+
|
|
11
|
+
### ❤️ Thank You
|
|
12
|
+
|
|
13
|
+
- Joël VIGREUX
|
|
14
|
+
|
|
15
|
+
## 2.4.17 (2026-03-20)
|
|
16
|
+
|
|
17
|
+
### 🧱 Updated Dependencies
|
|
18
|
+
|
|
19
|
+
- Updated @udixio/theme to 2.1.17
|
|
20
|
+
|
|
1
21
|
## 2.4.16 (2026-02-15)
|
|
2
22
|
|
|
3
23
|
### 🧱 Updated Dependencies
|
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-
|
|
3
|
+
const tailwind_plugin = require("./tailwind.plugin-DtXXUiCf.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-
|
|
2
|
-
import { T, b, a, f, s } from "./tailwind.plugin-
|
|
1
|
+
import { m as main } from "./tailwind.plugin-CaHiNZqB.js";
|
|
2
|
+
import { T, b, a, f, s } from "./tailwind.plugin-CaHiNZqB.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-
|
|
27
|
+
const tailwind_plugin = require("./tailwind.plugin-DtXXUiCf.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-
|
|
5
|
-
import { a, f, s } from "./tailwind.plugin-
|
|
4
|
+
import { T as TailwindImplPluginBrowser, m as main } from "./tailwind.plugin-CaHiNZqB.js";
|
|
5
|
+
import { a, f, s } from "./tailwind.plugin-CaHiNZqB.js";
|
|
6
6
|
import { PluginAbstract, FontPlugin } from "@udixio/theme";
|
|
7
7
|
import * as fs from "fs";
|
|
8
8
|
import * as console from "node:console";
|
|
@@ -4,7 +4,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
4
4
|
import plugin from "tailwindcss/plugin";
|
|
5
5
|
import { kebabCase } from "text-case";
|
|
6
6
|
import { PluginImplAbstract, PluginAbstract, FontPlugin } from "@udixio/theme";
|
|
7
|
-
import {
|
|
7
|
+
import { Hct, argbFromHex, hexFromArgb } from "@material/material-color-utilities";
|
|
8
8
|
const createAnimationFunc = ({
|
|
9
9
|
addBase,
|
|
10
10
|
prefix,
|
|
@@ -775,7 +775,7 @@ class TailwindImplPluginBrowser extends PluginImplAbstract {
|
|
|
775
775
|
})}
|
|
776
776
|
}`;
|
|
777
777
|
const sourceColor = this.api.context.sourceColor;
|
|
778
|
-
const
|
|
778
|
+
const originalRawSourceColor = this.api.context.rawSourceColor;
|
|
779
779
|
for (const [key, value] of Object.entries(this.options.subThemes ?? {})) {
|
|
780
780
|
const newHue = Hct.fromInt(argbFromHex(value)).hue;
|
|
781
781
|
const newColor = Hct.from(newHue, sourceColor.chroma, sourceColor.tone);
|
|
@@ -798,7 +798,7 @@ class TailwindImplPluginBrowser extends PluginImplAbstract {
|
|
|
798
798
|
})}
|
|
799
799
|
}`;
|
|
800
800
|
}
|
|
801
|
-
this.api.context.sourceColor
|
|
801
|
+
this.api.context.update({ sourceColor: originalRawSourceColor });
|
|
802
802
|
}
|
|
803
803
|
getColors() {
|
|
804
804
|
const colors = {};
|
|
@@ -776,7 +776,7 @@ class TailwindImplPluginBrowser extends theme.PluginImplAbstract {
|
|
|
776
776
|
})}
|
|
777
777
|
}`;
|
|
778
778
|
const sourceColor = this.api.context.sourceColor;
|
|
779
|
-
const
|
|
779
|
+
const originalRawSourceColor = this.api.context.rawSourceColor;
|
|
780
780
|
for (const [key, value] of Object.entries(this.options.subThemes ?? {})) {
|
|
781
781
|
const newHue = materialColorUtilities.Hct.fromInt(materialColorUtilities.argbFromHex(value)).hue;
|
|
782
782
|
const newColor = materialColorUtilities.Hct.from(newHue, sourceColor.chroma, sourceColor.tone);
|
|
@@ -799,7 +799,7 @@ class TailwindImplPluginBrowser extends theme.PluginImplAbstract {
|
|
|
799
799
|
})}
|
|
800
800
|
}`;
|
|
801
801
|
}
|
|
802
|
-
this.api.context.sourceColor
|
|
802
|
+
this.api.context.update({ sourceColor: originalRawSourceColor });
|
|
803
803
|
}
|
|
804
804
|
getColors() {
|
|
805
805
|
const colors = {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@udixio/tailwind",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.18",
|
|
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.
|
|
34
|
+
"@udixio/theme": "2.1.18"
|
|
35
35
|
},
|
|
36
36
|
"repository": {
|
|
37
37
|
"type": "git",
|
|
@@ -163,7 +163,7 @@ export class TailwindImplPluginBrowser extends PluginImplAbstract<TailwindPlugin
|
|
|
163
163
|
}`;
|
|
164
164
|
|
|
165
165
|
const sourceColor = this.api.context.sourceColor;
|
|
166
|
-
const
|
|
166
|
+
const originalRawSourceColor = this.api.context.rawSourceColor;
|
|
167
167
|
|
|
168
168
|
for (const [key, value] of Object.entries(this.options.subThemes ?? {})) {
|
|
169
169
|
const newHue = Hct.fromInt(argbFromHex(value)).hue;
|
|
@@ -194,7 +194,7 @@ export class TailwindImplPluginBrowser extends PluginImplAbstract<TailwindPlugin
|
|
|
194
194
|
}`;
|
|
195
195
|
}
|
|
196
196
|
// Restore original sourceColor after processing subThemes
|
|
197
|
-
this.api.context.sourceColor
|
|
197
|
+
this.api.context.update({ sourceColor: originalRawSourceColor });
|
|
198
198
|
}
|
|
199
199
|
|
|
200
200
|
getColors() {
|