@udixio/tailwind 2.4.8 → 2.4.10
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 +24 -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/plugins-tailwind/font.d.ts.map +1 -1
- package/dist/{tailwind.plugin-Cy4ccIsB.js → tailwind.plugin-CJB7VyGG.js} +10 -7
- package/dist/{tailwind.plugin-CweksRYP.cjs → tailwind.plugin-CwaBY8Mt.cjs} +10 -7
- package/package.json +2 -2
- package/src/plugins-tailwind/font.ts +14 -9
- package/tsconfig.json +0 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,27 @@
|
|
|
1
|
+
## 2.4.10 (2026-01-26)
|
|
2
|
+
|
|
3
|
+
### 🩹 Fixes
|
|
4
|
+
|
|
5
|
+
- **tailwind:** handle array font-family values in `baseTextStyle` ([2014572](https://github.com/Udixio/UI/commit/2014572))
|
|
6
|
+
|
|
7
|
+
### ❤️ Thank You
|
|
8
|
+
|
|
9
|
+
- Joël VIGREUX
|
|
10
|
+
|
|
11
|
+
## 2.4.9 (2026-01-18)
|
|
12
|
+
|
|
13
|
+
### 🩹 Fixes
|
|
14
|
+
|
|
15
|
+
- **ui-react:** refine card styles, enhance theme color support, and update dependencies ([b89ca17](https://github.com/Udixio/UI/commit/b89ca17))
|
|
16
|
+
|
|
17
|
+
### 🧱 Updated Dependencies
|
|
18
|
+
|
|
19
|
+
- Updated @udixio/theme to 2.1.11
|
|
20
|
+
|
|
21
|
+
### ❤️ Thank You
|
|
22
|
+
|
|
23
|
+
- Joël VIGREUX
|
|
24
|
+
|
|
1
25
|
## 2.4.8 (2026-01-18)
|
|
2
26
|
|
|
3
27
|
### 🧱 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-CwaBY8Mt.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-CJB7VyGG.js";
|
|
2
|
+
import { T, b, a, f, s } from "./tailwind.plugin-CJB7VyGG.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-CwaBY8Mt.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-CJB7VyGG.js";
|
|
5
|
+
import { a, f, s } from "./tailwind.plugin-CJB7VyGG.js";
|
|
6
6
|
import { PluginAbstract, FontPlugin } from "@udixio/theme";
|
|
7
7
|
import * as fs from "fs";
|
|
8
8
|
import * as console from "node:console";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"font.d.ts","sourceRoot":"","sources":["../../src/plugins-tailwind/font.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAG9D,MAAM,WAAW,iBAAiB;IAChC,UAAU,EAAE,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC,CAAC;IAC1D,qBAAqB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC/C;AAED,eAAO,MAAM,IAAI,
|
|
1
|
+
{"version":3,"file":"font.d.ts","sourceRoot":"","sources":["../../src/plugins-tailwind/font.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAG9D,MAAM,WAAW,iBAAiB;IAChC,UAAU,EAAE,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC,CAAC;IAC1D,qBAAqB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC/C;AAED,eAAO,MAAM,IAAI,iFAyDf,CAAC"}
|
|
@@ -456,13 +456,16 @@ const font = plugin.withOptions((options) => {
|
|
|
456
456
|
const { fontStyles, responsiveBreakPoints } = options;
|
|
457
457
|
const pixelUnit = "rem";
|
|
458
458
|
const newUtilities = {};
|
|
459
|
-
const baseTextStyle = (sizeValue) =>
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
459
|
+
const baseTextStyle = (sizeValue) => {
|
|
460
|
+
const fontFamilyValue = theme("fontFamily." + sizeValue.fontFamily);
|
|
461
|
+
return {
|
|
462
|
+
fontSize: sizeValue.fontSize + pixelUnit,
|
|
463
|
+
fontWeight: sizeValue.fontWeight,
|
|
464
|
+
lineHeight: sizeValue.lineHeight + pixelUnit,
|
|
465
|
+
letterSpacing: sizeValue.letterSpacing ? sizeValue.letterSpacing + pixelUnit : null,
|
|
466
|
+
fontFamily: Array.isArray(fontFamilyValue) ? fontFamilyValue.join(", ") : fontFamilyValue
|
|
467
|
+
};
|
|
468
|
+
};
|
|
466
469
|
const responsiveTextStyle = (sizeValue, breakPointName, breakPointRatio) => ({
|
|
467
470
|
[`@media (min-width: ${theme("screens." + breakPointName, {})})`]: {
|
|
468
471
|
fontSize: sizeValue.fontSize * breakPointRatio + pixelUnit,
|
|
@@ -457,13 +457,16 @@ const font = plugin.withOptions((options) => {
|
|
|
457
457
|
const { fontStyles, responsiveBreakPoints } = options;
|
|
458
458
|
const pixelUnit = "rem";
|
|
459
459
|
const newUtilities = {};
|
|
460
|
-
const baseTextStyle = (sizeValue) =>
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
460
|
+
const baseTextStyle = (sizeValue) => {
|
|
461
|
+
const fontFamilyValue = theme2("fontFamily." + sizeValue.fontFamily);
|
|
462
|
+
return {
|
|
463
|
+
fontSize: sizeValue.fontSize + pixelUnit,
|
|
464
|
+
fontWeight: sizeValue.fontWeight,
|
|
465
|
+
lineHeight: sizeValue.lineHeight + pixelUnit,
|
|
466
|
+
letterSpacing: sizeValue.letterSpacing ? sizeValue.letterSpacing + pixelUnit : null,
|
|
467
|
+
fontFamily: Array.isArray(fontFamilyValue) ? fontFamilyValue.join(", ") : fontFamilyValue
|
|
468
|
+
};
|
|
469
|
+
};
|
|
467
470
|
const responsiveTextStyle = (sizeValue, breakPointName, breakPointRatio) => ({
|
|
468
471
|
[`@media (min-width: ${theme2("screens." + breakPointName, {})})`]: {
|
|
469
472
|
fontSize: sizeValue.fontSize * breakPointRatio + pixelUnit,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@udixio/tailwind",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.10",
|
|
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.11"
|
|
35
35
|
},
|
|
36
36
|
"repository": {
|
|
37
37
|
"type": "git",
|
|
@@ -16,15 +16,20 @@ export const font = plugin.withOptions((options: FontPluginOptions) => {
|
|
|
16
16
|
const pixelUnit = 'rem';
|
|
17
17
|
const newUtilities: Record<string, any> = {};
|
|
18
18
|
|
|
19
|
-
const baseTextStyle = (sizeValue: FontStyle) =>
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
:
|
|
26
|
-
|
|
27
|
-
|
|
19
|
+
const baseTextStyle = (sizeValue: FontStyle) => {
|
|
20
|
+
const fontFamilyValue = theme('fontFamily.' + sizeValue.fontFamily);
|
|
21
|
+
return {
|
|
22
|
+
fontSize: sizeValue.fontSize + pixelUnit,
|
|
23
|
+
fontWeight: sizeValue.fontWeight as unknown as any,
|
|
24
|
+
lineHeight: sizeValue.lineHeight + pixelUnit,
|
|
25
|
+
letterSpacing: sizeValue.letterSpacing
|
|
26
|
+
? sizeValue.letterSpacing + pixelUnit
|
|
27
|
+
: null,
|
|
28
|
+
fontFamily: Array.isArray(fontFamilyValue)
|
|
29
|
+
? fontFamilyValue.join(', ')
|
|
30
|
+
: fontFamilyValue,
|
|
31
|
+
};
|
|
32
|
+
};
|
|
28
33
|
|
|
29
34
|
const responsiveTextStyle = (
|
|
30
35
|
sizeValue: FontStyle,
|