@udixio/tailwind 0.4.1 → 0.5.0

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
+ ## 0.4.1 (2025-07-25)
2
+
3
+ ### 🩹 Fixes
4
+
5
+ - **dependencies:** update `pnpm-lock.yaml` for consistency and compatibility ([e6dfc9d](https://github.com/Udixio/UI/commit/e6dfc9d))
6
+
7
+ ### 🧱 Updated Dependencies
8
+
9
+ - Updated theme to 0.4.2
10
+
11
+ ### ❤️ Thank You
12
+
13
+ - Joël VIGREUX
14
+
1
15
  ## 0.4.0 (2025-07-25)
2
16
 
3
17
  ### 🚀 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$1 = require("@udixio/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$1.PluginAbstract {
225
+ class TailwindPlugin extends theme.PluginAbstract {
226
226
  constructor() {
227
227
  super(...arguments);
228
- this.dependencies = [theme$1.FontPlugin];
228
+ this.dependencies = [theme.FontPlugin];
229
229
  this.name = "tailwind";
230
230
  this.pluginClass = TailwindImplPlugin;
231
231
  }
232
232
  }
233
- class TailwindImplPlugin extends theme$1.PluginImplAbstract {
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$1.FontPlugin).getInstance().getFonts();
264
+ const { fontStyles, fontFamily } = this.api.plugins.getPlugin(theme.FontPlugin).getInstance().getFonts();
265
265
  createOrUpdateFile(
266
266
  path.join(cssFilePath, "udixio.css"),
267
267
  `
@@ -302,13 +302,12 @@ class TailwindImplPlugin extends theme$1.PluginImplAbstract {
302
302
  }
303
303
  }
304
304
  const createTheme = () => {
305
- const app = theme$1.bootstrapFromConfig();
305
+ const app = 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 = theme;
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: theme2 }) => {
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: theme2("fontFamily." + sizeValue.fontFamily)
165
+ fontFamily: theme("fontFamily." + sizeValue.fontFamily)
166
166
  });
167
167
  const responsiveTextStyle = (sizeValue, breakPointName, breakPointRatio) => ({
168
- [`@media (min-width: ${theme2("screens." + breakPointName, {})})`]: {
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: theme2
199
+ theme
200
200
  }) => {
201
- const newUtilities = createUtilities({ theme: theme2 });
201
+ const newUtilities = createUtilities({ theme });
202
202
  addUtilities(newUtilities);
203
203
  }
204
204
  );
@@ -287,11 +287,10 @@ const createTheme = () => {
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
- theme as default,
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.4.1",
3
+ "version": "0.5.0",
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.4.2"
15
+ "@udixio/theme": "0.5.0"
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,6 @@
1
+ import { createTheme } from './main';
2
+ export * from './main';
3
+ export * from './plugins-tailwind';
4
+ export * from './tailwind.plugin';
5
+ export default createTheme;
6
+ //# sourceMappingURL=index.d.ts.map
@@ -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"}
@@ -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,UAAU,CAAC,OAAO,MAAM,CAAC,WAAW,CAInE,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"}
@@ -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"}
@@ -1,4 +0,0 @@
1
- export * from './main';
2
- export * from './plugins-tailwind';
3
- export * from './tailwind.plugin';
4
- //# sourceMappingURL=index.d.ts.map
@@ -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"}
@@ -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