@udixio/tailwind 0.4.1 → 0.5.1
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 +28 -0
- package/index.cjs +8 -9
- package/index.js +8 -9
- package/package.json +2 -2
- package/src/file.d.ts.map +1 -0
- package/src/index.d.ts +6 -0
- package/src/index.d.ts.map +1 -0
- package/src/main.d.ts +3 -0
- package/src/main.d.ts.map +1 -0
- package/src/plugins-tailwind/font.d.ts.map +1 -0
- package/src/plugins-tailwind/index.d.ts.map +1 -0
- package/src/plugins-tailwind/state.d.ts.map +1 -0
- package/src/tailwind.plugin.d.ts.map +1 -0
- package/src/lib/file.d.ts.map +0 -1
- package/src/lib/index.d.ts +0 -4
- package/src/lib/index.d.ts.map +0 -1
- package/src/lib/main.d.ts +0 -3
- package/src/lib/main.d.ts.map +0 -1
- package/src/lib/plugins-tailwind/font.d.ts.map +0 -1
- package/src/lib/plugins-tailwind/index.d.ts.map +0 -1
- package/src/lib/plugins-tailwind/state.d.ts.map +0 -1
- package/src/lib/tailwind.plugin.d.ts.map +0 -1
- /package/src/{lib/file.d.ts → file.d.ts} +0 -0
- /package/src/{lib/plugins-tailwind → plugins-tailwind}/font.d.ts +0 -0
- /package/src/{lib/plugins-tailwind → plugins-tailwind}/index.d.ts +0 -0
- /package/src/{lib/plugins-tailwind → plugins-tailwind}/state.d.ts +0 -0
- /package/src/{lib/tailwind.plugin.d.ts → tailwind.plugin.d.ts} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,31 @@
|
|
|
1
|
+
## 0.5.0 (2025-07-25)
|
|
2
|
+
|
|
3
|
+
### 🚀 Features
|
|
4
|
+
|
|
5
|
+
- **theme:** migrate build system from Rollup to Vite for improved performance and configuration ([3f33657](https://github.com/Udixio/UI/commit/3f33657))
|
|
6
|
+
|
|
7
|
+
### 🧱 Updated Dependencies
|
|
8
|
+
|
|
9
|
+
- Updated theme to 0.5.0
|
|
10
|
+
|
|
11
|
+
### ❤️ Thank You
|
|
12
|
+
|
|
13
|
+
- Joël VIGREUX
|
|
14
|
+
|
|
15
|
+
## 0.4.1 (2025-07-25)
|
|
16
|
+
|
|
17
|
+
### 🩹 Fixes
|
|
18
|
+
|
|
19
|
+
- **dependencies:** update `pnpm-lock.yaml` for consistency and compatibility ([e6dfc9d](https://github.com/Udixio/UI/commit/e6dfc9d))
|
|
20
|
+
|
|
21
|
+
### 🧱 Updated Dependencies
|
|
22
|
+
|
|
23
|
+
- Updated theme to 0.4.2
|
|
24
|
+
|
|
25
|
+
### ❤️ Thank You
|
|
26
|
+
|
|
27
|
+
- Joël VIGREUX
|
|
28
|
+
|
|
1
29
|
## 0.4.0 (2025-07-25)
|
|
2
30
|
|
|
3
31
|
### 🚀 Features
|
package/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const theme
|
|
3
|
+
const theme = require("@udixio/theme");
|
|
4
4
|
const plugin = require("tailwindcss/plugin");
|
|
5
5
|
const fs = require("fs");
|
|
6
6
|
const path = require("path");
|
|
@@ -222,15 +222,15 @@ const font = (fontStyles, responsiveBreakPoints) => {
|
|
|
222
222
|
}
|
|
223
223
|
);
|
|
224
224
|
};
|
|
225
|
-
class TailwindPlugin extends theme
|
|
225
|
+
class TailwindPlugin extends theme.PluginAbstract {
|
|
226
226
|
constructor() {
|
|
227
227
|
super(...arguments);
|
|
228
|
-
this.dependencies = [theme
|
|
228
|
+
this.dependencies = [theme.FontPlugin];
|
|
229
229
|
this.name = "tailwind";
|
|
230
230
|
this.pluginClass = TailwindImplPlugin;
|
|
231
231
|
}
|
|
232
232
|
}
|
|
233
|
-
class TailwindImplPlugin extends theme
|
|
233
|
+
class TailwindImplPlugin extends theme.PluginImplAbstract {
|
|
234
234
|
onInit() {
|
|
235
235
|
var _a;
|
|
236
236
|
(_a = this.options).responsiveBreakPoints ?? (_a.responsiveBreakPoints = {
|
|
@@ -261,7 +261,7 @@ class TailwindImplPlugin extends theme$1.PluginImplAbstract {
|
|
|
261
261
|
colors[newKey][isDark ? "dark" : "light"] = value.getHex();
|
|
262
262
|
}
|
|
263
263
|
}
|
|
264
|
-
const { fontStyles, fontFamily } = this.api.plugins.getPlugin(theme
|
|
264
|
+
const { fontStyles, fontFamily } = this.api.plugins.getPlugin(theme.FontPlugin).getInstance().getFonts();
|
|
265
265
|
createOrUpdateFile(
|
|
266
266
|
path.join(cssFilePath, "udixio.css"),
|
|
267
267
|
`
|
|
@@ -301,14 +301,13 @@ class TailwindImplPlugin extends theme$1.PluginImplAbstract {
|
|
|
301
301
|
);
|
|
302
302
|
}
|
|
303
303
|
}
|
|
304
|
-
const createTheme = () => {
|
|
305
|
-
const app = theme
|
|
304
|
+
const createTheme = async () => {
|
|
305
|
+
const app = await theme.bootstrapFromConfig();
|
|
306
306
|
const plugin2 = app.plugins.getPlugin(TailwindPlugin).getInstance();
|
|
307
307
|
return plugin2.load();
|
|
308
308
|
};
|
|
309
|
-
const theme = createTheme();
|
|
310
309
|
exports.TailwindPlugin = TailwindPlugin;
|
|
311
310
|
exports.createTheme = createTheme;
|
|
312
|
-
exports.default =
|
|
311
|
+
exports.default = createTheme;
|
|
313
312
|
exports.font = font;
|
|
314
313
|
exports.state = state;
|
package/index.js
CHANGED
|
@@ -154,7 +154,7 @@ const addAllNewComponents = ({ addComponents }, { statePrefix, disabledStyles, t
|
|
|
154
154
|
addComponents(newComponents);
|
|
155
155
|
};
|
|
156
156
|
const font = (fontStyles, responsiveBreakPoints) => {
|
|
157
|
-
const createUtilities = ({ theme
|
|
157
|
+
const createUtilities = ({ theme }) => {
|
|
158
158
|
const pixelUnit = "rem";
|
|
159
159
|
const newUtilities = {};
|
|
160
160
|
const baseTextStyle = (sizeValue) => ({
|
|
@@ -162,10 +162,10 @@ const font = (fontStyles, responsiveBreakPoints) => {
|
|
|
162
162
|
fontWeight: sizeValue.fontWeight,
|
|
163
163
|
lineHeight: sizeValue.lineHeight + pixelUnit,
|
|
164
164
|
letterSpacing: sizeValue.letterSpacing ? sizeValue.letterSpacing + pixelUnit : null,
|
|
165
|
-
fontFamily:
|
|
165
|
+
fontFamily: theme("fontFamily." + sizeValue.fontFamily)
|
|
166
166
|
});
|
|
167
167
|
const responsiveTextStyle = (sizeValue, breakPointName, breakPointRatio) => ({
|
|
168
|
-
[`@media (min-width: ${
|
|
168
|
+
[`@media (min-width: ${theme("screens." + breakPointName, {})})`]: {
|
|
169
169
|
fontSize: sizeValue.fontSize * breakPointRatio + pixelUnit,
|
|
170
170
|
lineHeight: sizeValue.lineHeight * breakPointRatio + pixelUnit
|
|
171
171
|
}
|
|
@@ -196,9 +196,9 @@ const font = (fontStyles, responsiveBreakPoints) => {
|
|
|
196
196
|
return plugin(
|
|
197
197
|
({
|
|
198
198
|
addUtilities,
|
|
199
|
-
theme
|
|
199
|
+
theme
|
|
200
200
|
}) => {
|
|
201
|
-
const newUtilities = createUtilities({ theme
|
|
201
|
+
const newUtilities = createUtilities({ theme });
|
|
202
202
|
addUtilities(newUtilities);
|
|
203
203
|
}
|
|
204
204
|
);
|
|
@@ -282,16 +282,15 @@ class TailwindImplPlugin extends PluginImplAbstract {
|
|
|
282
282
|
);
|
|
283
283
|
}
|
|
284
284
|
}
|
|
285
|
-
const createTheme = () => {
|
|
286
|
-
const app = bootstrapFromConfig();
|
|
285
|
+
const createTheme = async () => {
|
|
286
|
+
const app = await bootstrapFromConfig();
|
|
287
287
|
const plugin2 = app.plugins.getPlugin(TailwindPlugin).getInstance();
|
|
288
288
|
return plugin2.load();
|
|
289
289
|
};
|
|
290
|
-
const theme = createTheme();
|
|
291
290
|
export {
|
|
292
291
|
TailwindPlugin,
|
|
293
292
|
createTheme,
|
|
294
|
-
|
|
293
|
+
createTheme as default,
|
|
295
294
|
font,
|
|
296
295
|
state
|
|
297
296
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@udixio/tailwind",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"types": "./src/index.d.ts",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"tslib": "^2.3.0",
|
|
15
|
-
"@udixio/theme": "0.
|
|
15
|
+
"@udixio/theme": "0.5.1"
|
|
16
16
|
},
|
|
17
17
|
"repository": {
|
|
18
18
|
"type": "git",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file.d.ts","sourceRoot":"","sources":["../../../../packages/tailwind/src/file.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,kBAAkB,GAAI,UAAU,MAAM,EAAE,SAAS,MAAM,KAAG,IAmBtE,CAAC;AAEF,eAAO,MAAM,cAAc,GACzB,UAAU,MAAM,EAChB,gBAAgB,MAAM,GAAG,MAAM,KAC9B,MAAM,GAAG,KAAK,GAAG,IA4CnB,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAC7B,UAAU,MAAM,EAChB,eAAe,MAAM,GAAG,MAAM,EAC9B,aAAa,MAAM,KAClB,IAkBF,CAAC;AACF,eAAO,MAAM,mBAAmB,GAC9B,UAAU,MAAM,EAChB,eAAe,MAAM,KACpB,MAAM,GAAG,IAyBX,CAAC"}
|
package/src/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../packages/tailwind/src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAErC,cAAc,QAAQ,CAAC;AACvB,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,eAAe,WAAW,CAAC"}
|
package/src/main.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../../packages/tailwind/src/main.ts"],"names":[],"mappings":"AAEA,OAAO,MAAM,MAAM,oBAAoB,CAAC;AAExC,eAAO,MAAM,WAAW,EAAE,MAAM,OAAO,CACrC,UAAU,CAAC,OAAO,MAAM,CAAC,WAAW,CAAC,CAKtC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"font.d.ts","sourceRoot":"","sources":["../../../../../packages/tailwind/src/plugins-tailwind/font.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC9D,OAAO,MAAqB,MAAM,oBAAoB,CAAC;AAEvD,eAAO,MAAM,IAAI,EAAE,CACjB,UAAU,EAAE,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC,EACzD,qBAAqB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAC1C,UAAU,CAAC,OAAO,MAAM,CA2D5B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/tailwind/src/plugins-tailwind/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../../../../packages/tailwind/src/plugins-tailwind/state.ts"],"names":[],"mappings":"AACA,OAAO,MAAqB,MAAM,oBAAoB,CAAC;AAevD,eAAO,MAAM,KAAK,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,UAAU,CAAC,OAAO,MAAM,CAkB7D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tailwind.plugin.d.ts","sourceRoot":"","sources":["../../../../packages/tailwind/src/tailwind.plugin.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,oBAAoB,CAAC;AAUxC,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAE/E,UAAU,qBAAqB;IAE7B,qBAAqB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC/C,aAAa,CAAC,EAAE,MAAM,CAAC;CAExB;AAED,qBAAa,cAAe,SAAQ,cAAc,CAChD,kBAAkB,EAClB,qBAAqB,CACtB;IACQ,YAAY,wBAAgB;IAC5B,IAAI,SAAc;IACzB,WAAW,4BAAsB;CAClC;AAED,cAAM,kBAAmB,SAAQ,kBAAkB,CAAC,qBAAqB,CAAC;IACxE,MAAM;IAMN,IAAI,IAAI,UAAU,CAAC,OAAO,MAAM,CAAC,WAAW,CAAC;CAwF9C"}
|
package/src/lib/file.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"file.d.ts","sourceRoot":"","sources":["../../../../../packages/tailwind/src/lib/file.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,kBAAkB,GAAI,UAAU,MAAM,EAAE,SAAS,MAAM,KAAG,IAmBtE,CAAC;AAEF,eAAO,MAAM,cAAc,GACzB,UAAU,MAAM,EAChB,gBAAgB,MAAM,GAAG,MAAM,KAC9B,MAAM,GAAG,KAAK,GAAG,IA4CnB,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAC7B,UAAU,MAAM,EAChB,eAAe,MAAM,GAAG,MAAM,EAC9B,aAAa,MAAM,KAClB,IAkBF,CAAC;AACF,eAAO,MAAM,mBAAmB,GAC9B,UAAU,MAAM,EAChB,eAAe,MAAM,KACpB,MAAM,GAAG,IAyBX,CAAC"}
|
package/src/lib/index.d.ts
DELETED
package/src/lib/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/tailwind/src/lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC"}
|
package/src/lib/main.d.ts
DELETED
package/src/lib/main.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../../../packages/tailwind/src/lib/main.ts"],"names":[],"mappings":"AAEA,OAAO,MAAM,MAAM,oBAAoB,CAAC;AAExC,eAAO,MAAM,WAAW,EAAE,MAAM,UAAU,CAAC,OAAO,MAAM,CAAC,WAAW,CAInE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"font.d.ts","sourceRoot":"","sources":["../../../../../../packages/tailwind/src/lib/plugins-tailwind/font.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC9D,OAAO,MAAqB,MAAM,oBAAoB,CAAC;AAEvD,eAAO,MAAM,IAAI,EAAE,CACjB,UAAU,EAAE,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC,EACzD,qBAAqB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAC1C,UAAU,CAAC,OAAO,MAAM,CA2D5B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/tailwind/src/lib/plugins-tailwind/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../../../../../packages/tailwind/src/lib/plugins-tailwind/state.ts"],"names":[],"mappings":"AACA,OAAO,MAAqB,MAAM,oBAAoB,CAAC;AAevD,eAAO,MAAM,KAAK,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,UAAU,CAAC,OAAO,MAAM,CAkB7D,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tailwind.plugin.d.ts","sourceRoot":"","sources":["../../../../../packages/tailwind/src/lib/tailwind.plugin.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,oBAAoB,CAAC;AAUxC,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAE/E,UAAU,qBAAqB;IAE7B,qBAAqB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC/C,aAAa,CAAC,EAAE,MAAM,CAAC;CAExB;AAED,qBAAa,cAAe,SAAQ,cAAc,CAChD,kBAAkB,EAClB,qBAAqB,CACtB;IACQ,YAAY,wBAAgB;IAC5B,IAAI,SAAc;IACzB,WAAW,4BAAsB;CAClC;AAED,cAAM,kBAAmB,SAAQ,kBAAkB,CAAC,qBAAqB,CAAC;IACxE,MAAM;IAMN,IAAI,IAAI,UAAU,CAAC,OAAO,MAAM,CAAC,WAAW,CAAC;CAwF9C"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|