@udixio/theme 2.1.12 → 2.1.13

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,13 @@
1
+ ## 2.1.13 (2026-02-02)
2
+
3
+ ### 🩹 Fixes
4
+
5
+ - **theme:** remove debug `console.log` from `udixio ([e02f6ce](https://github.com/Udixio/UI/commit/e02f6ce))
6
+
7
+ ### ❤️ Thank You
8
+
9
+ - Joël VIGREUX
10
+
1
11
  ## 2.1.12 (2026-01-30)
2
12
 
3
13
  ### 🚀 Features
package/dist/bin.cjs CHANGED
@@ -2,7 +2,7 @@
2
2
  const commander = require("commander");
3
3
  const chokidar = require("chokidar");
4
4
  const chalk = require("chalk");
5
- const loadFromPath = require("./load-from-path-DVvlFI1M.cjs");
5
+ const loadFromPath = require("./load-from-path-DDQroKk-.cjs");
6
6
  const program = new commander.Command();
7
7
  async function runOnce(configPath) {
8
8
  try {
package/dist/bin.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { Command } from "commander";
2
2
  import chokidar from "chokidar";
3
3
  import chalk from "chalk";
4
- import { l as loadFromPath } from "./load-from-path-CHmj8u_v.js";
4
+ import { l as loadFromPath } from "./load-from-path-B7BI6LZa.js";
5
5
  const program = new Command();
6
6
  async function runOnce(configPath) {
7
7
  try {
package/dist/browser.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const loader = require("./loader-BZta4ulw.cjs");
4
- const font_plugin = require("./font.plugin-B6HEs4Om.cjs");
3
+ const loader = require("./loader-CgJ2JY88.cjs");
4
+ const font_plugin = require("./font.plugin-B9NdGRxC.cjs");
5
5
  exports.API = loader.API;
6
6
  exports.AppContainer = loader.AppContainer;
7
7
  exports.AppModule = loader.AppModule;
package/dist/browser.js CHANGED
@@ -1,44 +1,44 @@
1
- import { A, a, b, h, i, C, j, k, e, f, o, n, q, D, P, r, s, v, u, V, z, c, d, m, F, g, w, x, l, p, G, B, t, y, E } from "./loader-DVtdg4Xh.js";
2
- import { F as F2, b as b2, P as P2, a as a2, d as d2 } from "./font.plugin-BorVbapj.js";
1
+ import { A, a, b, C, c, d, e, f, g, h, i, j, k, D, P, l, m, n, o, V, p, q, r, s, t, u, v, w, x, y, z, B, E, F, G } from "./loader-Cy_VzOHt.js";
2
+ import { F as F2, a as a2, P as P2, b as b2, d as d2 } from "./font.plugin-b3GDzC1A.js";
3
3
  export {
4
4
  A as API,
5
5
  a as AppContainer,
6
6
  b as AppModule,
7
- h as Color,
8
- i as ColorAlias,
9
- C as ColorApi,
10
- j as ColorFromHex,
11
- k as ColorFromPalette,
12
- e as ColorManager,
13
- f as ColorModule,
14
- o as Context,
15
- n as ContextModule,
16
- q as ContrastCurve,
7
+ C as Color,
8
+ c as ColorAlias,
9
+ d as ColorApi,
10
+ e as ColorFromHex,
11
+ f as ColorFromPalette,
12
+ g as ColorManager,
13
+ h as ColorModule,
14
+ i as Context,
15
+ j as ContextModule,
16
+ k as ContrastCurve,
17
17
  D as DynamicColor,
18
18
  F2 as FontFamily,
19
- b2 as FontPlugin,
19
+ a2 as FontPlugin,
20
20
  P as Palette,
21
- r as PaletteApi,
22
- s as PaletteModule,
21
+ l as PaletteApi,
22
+ m as PaletteModule,
23
23
  P2 as PluginAbstract,
24
- v as PluginApi,
25
- a2 as PluginImplAbstract,
26
- u as PluginModule,
24
+ n as PluginApi,
25
+ b2 as PluginImplAbstract,
26
+ o as PluginModule,
27
27
  V as Variant,
28
- z as Variants,
29
- c as bootstrap,
30
- d as capitalizeFirstLetter,
31
- m as defaultColors,
28
+ p as Variants,
29
+ q as bootstrap,
30
+ r as capitalizeFirstLetter,
31
+ s as defaultColors,
32
32
  d2 as defineConfig,
33
- F as expressiveVariant,
34
- g as getInitialToneFromBackground,
35
- w as getPiecewiseHue,
36
- x as getRotatedHue,
37
- l as highestSurface,
38
- p as loader,
39
- G as neutralVariant,
33
+ t as expressiveVariant,
34
+ u as getInitialToneFromBackground,
35
+ v as getPiecewiseHue,
36
+ w as getRotatedHue,
37
+ x as highestSurface,
38
+ y as loader,
39
+ z as neutralVariant,
40
40
  B as tonalSpotVariant,
41
- t as toneDeltaPair,
42
- y as variant,
43
- E as vibrantVariant
41
+ E as toneDeltaPair,
42
+ F as variant,
43
+ G as vibrantVariant
44
44
  };
@@ -2,7 +2,7 @@
2
2
  var __defProp = Object.defineProperty;
3
3
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4
4
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
5
- require("./loader-BZta4ulw.cjs");
5
+ require("./loader-CgJ2JY88.cjs");
6
6
  class PluginAbstract {
7
7
  constructor(options) {
8
8
  __publicField(this, "options");
@@ -1,7 +1,7 @@
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 "./loader-DVtdg4Xh.js";
4
+ import "./loader-Cy_VzOHt.js";
5
5
  class PluginAbstract {
6
6
  constructor(options) {
7
7
  __publicField(this, "options");
@@ -222,7 +222,7 @@ class FontPluginImpl extends PluginImplAbstract {
222
222
  export {
223
223
  FontFamily as F,
224
224
  PluginAbstract as P,
225
- PluginImplAbstract as a,
226
- FontPlugin as b,
225
+ FontPlugin as a,
226
+ PluginImplAbstract as b,
227
227
  defineConfig as d
228
228
  };
@@ -1,4 +1,4 @@
1
- import { p as loader } from "./loader-DVtdg4Xh.js";
1
+ import { y as loader } from "./loader-Cy_VzOHt.js";
2
2
  import * as fs from "node:fs";
3
3
  async function resolveConfig(configPath = "./theme.config") {
4
4
  const { createJiti } = await import("jiti");
@@ -21,7 +21,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
21
21
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
22
  mod
23
23
  ));
24
- const loader = require("./loader-BZta4ulw.cjs");
24
+ const loader = require("./loader-CgJ2JY88.cjs");
25
25
  const fs = require("node:fs");
26
26
  var _documentCurrentScript = typeof document !== "undefined" ? document.currentScript : null;
27
27
  function _interopNamespaceDefault(e) {
@@ -44,7 +44,7 @@ const fs__namespace = /* @__PURE__ */ _interopNamespaceDefault(fs);
44
44
  async function resolveConfig(configPath = "./theme.config") {
45
45
  const { createJiti } = await import("jiti");
46
46
  const { resolve } = await import("pathe");
47
- const jiti = createJiti(typeof document === "undefined" ? require("url").pathToFileURL(__filename).href : _documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === "SCRIPT" && _documentCurrentScript.src || new URL("load-from-path-DVvlFI1M.cjs", document.baseURI).href, {
47
+ const jiti = createJiti(typeof document === "undefined" ? require("url").pathToFileURL(__filename).href : _documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === "SCRIPT" && _documentCurrentScript.src || new URL("load-from-path-DDQroKk-.cjs", document.baseURI).href, {
48
48
  debug: process.env.NODE_ENV === "development",
49
49
  fsCache: true,
50
50
  interopDefault: true
@@ -3100,7 +3100,6 @@ const createMinContrastToneAdjuster = (ctx, colors, options) => {
3100
3100
  const referenceTone = referenceKey ? colors.get(referenceKey).getTone() : highestSurface(ctx, colors).getTone();
3101
3101
  const baseTone = colors.get(selfKey).options.tone;
3102
3102
  let selfTone = baseTone;
3103
- console.log("contrast ratio2", referenceTone, selfTone);
3104
3103
  if (materialColorUtilities.Contrast.ratioOfTones(referenceTone, selfTone) < minContrast) {
3105
3104
  const ratio = calculateToneAdjustmentPercentage(
3106
3105
  referenceTone,
@@ -3099,7 +3099,6 @@ const createMinContrastToneAdjuster = (ctx, colors, options) => {
3099
3099
  const referenceTone = referenceKey ? colors.get(referenceKey).getTone() : highestSurface(ctx, colors).getTone();
3100
3100
  const baseTone = colors.get(selfKey).options.tone;
3101
3101
  let selfTone = baseTone;
3102
- console.log("contrast ratio2", referenceTone, selfTone);
3103
3102
  if (Contrast.ratioOfTones(referenceTone, selfTone) < minContrast) {
3104
3103
  const ratio = calculateToneAdjustmentPercentage(
3105
3104
  referenceTone,
@@ -3877,37 +3876,37 @@ const loader = async (config, load = true) => {
3877
3876
  export {
3878
3877
  API as A,
3879
3878
  tonalSpotVariant as B,
3880
- ColorApi as C,
3879
+ Color as C,
3881
3880
  DynamicColor as D,
3882
- vibrantVariant as E,
3883
- expressiveVariant as F,
3884
- neutralVariant as G,
3881
+ toneDeltaPair as E,
3882
+ variant as F,
3883
+ vibrantVariant as G,
3885
3884
  Palette as P,
3886
3885
  Variant as V,
3887
3886
  AppContainer as a,
3888
3887
  AppModule as b,
3889
- bootstrap as c,
3890
- capitalizeFirstLetter as d,
3891
- ColorManager as e,
3892
- ColorModule as f,
3893
- getInitialToneFromBackground as g,
3894
- Color as h,
3895
- ColorAlias as i,
3896
- ColorFromHex as j,
3897
- ColorFromPalette as k,
3898
- highestSurface$1 as l,
3899
- defaultColors as m,
3900
- ContextModule as n,
3901
- Context as o,
3902
- loader as p,
3903
- ContrastCurve as q,
3904
- PaletteApi as r,
3905
- PaletteModule as s,
3906
- toneDeltaPair as t,
3907
- PluginModule as u,
3908
- PluginApi as v,
3909
- getPiecewiseHue as w,
3910
- getRotatedHue as x,
3911
- variant as y,
3912
- Variants as z
3888
+ ColorAlias as c,
3889
+ ColorApi as d,
3890
+ ColorFromHex as e,
3891
+ ColorFromPalette as f,
3892
+ ColorManager as g,
3893
+ ColorModule as h,
3894
+ Context as i,
3895
+ ContextModule as j,
3896
+ ContrastCurve as k,
3897
+ PaletteApi as l,
3898
+ PaletteModule as m,
3899
+ PluginApi as n,
3900
+ PluginModule as o,
3901
+ Variants as p,
3902
+ bootstrap as q,
3903
+ capitalizeFirstLetter as r,
3904
+ defaultColors as s,
3905
+ expressiveVariant as t,
3906
+ getInitialToneFromBackground as u,
3907
+ getPiecewiseHue as v,
3908
+ getRotatedHue as w,
3909
+ highestSurface$1 as x,
3910
+ loader as y,
3911
+ neutralVariant as z
3913
3912
  };
package/dist/node.cjs CHANGED
@@ -22,9 +22,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
22
22
  mod
23
23
  ));
24
24
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
25
- const loader = require("./loader-BZta4ulw.cjs");
26
- const font_plugin = require("./font.plugin-B6HEs4Om.cjs");
27
- const loadFromPath = require("./load-from-path-DVvlFI1M.cjs");
25
+ const loader = require("./loader-CgJ2JY88.cjs");
26
+ const font_plugin = require("./font.plugin-B9NdGRxC.cjs");
27
+ const loadFromPath = require("./load-from-path-DDQroKk-.cjs");
28
28
  let unpluginInstance = null;
29
29
  const createUnpluginTheme = async () => {
30
30
  if (unpluginInstance) {
package/dist/node.js CHANGED
@@ -1,7 +1,7 @@
1
- import { A, a, b, h, i, C, j, k, e, f, o, n, q, D, P, r, s, v, u, V, z, c, d, m, F, g, w, x, l, p, G, B, t, y, E } from "./loader-DVtdg4Xh.js";
2
- import { F as F2, b as b2, P as P2, a as a2, d as d2 } from "./font.plugin-BorVbapj.js";
3
- import { l as loadFromPath } from "./load-from-path-CHmj8u_v.js";
4
- import { r as r2 } from "./load-from-path-CHmj8u_v.js";
1
+ import { A, a, b, C, c, d, e, f, g, h, i, j, k, D, P, l, m, n, o, V, p, q, r, s, t, u, v, w, x, y, z, B, E, F, G } from "./loader-Cy_VzOHt.js";
2
+ import { F as F2, a as a2, P as P2, b as b2, d as d2 } from "./font.plugin-b3GDzC1A.js";
3
+ import { l as loadFromPath } from "./load-from-path-B7BI6LZa.js";
4
+ import { r as r2 } from "./load-from-path-B7BI6LZa.js";
5
5
  let unpluginInstance = null;
6
6
  const createUnpluginTheme = async () => {
7
7
  if (unpluginInstance) {
@@ -128,48 +128,48 @@ export {
128
128
  A as API,
129
129
  a as AppContainer,
130
130
  b as AppModule,
131
- h as Color,
132
- i as ColorAlias,
133
- C as ColorApi,
134
- j as ColorFromHex,
135
- k as ColorFromPalette,
136
- e as ColorManager,
137
- f as ColorModule,
138
- o as Context,
139
- n as ContextModule,
140
- q as ContrastCurve,
131
+ C as Color,
132
+ c as ColorAlias,
133
+ d as ColorApi,
134
+ e as ColorFromHex,
135
+ f as ColorFromPalette,
136
+ g as ColorManager,
137
+ h as ColorModule,
138
+ i as Context,
139
+ j as ContextModule,
140
+ k as ContrastCurve,
141
141
  D as DynamicColor,
142
142
  F2 as FontFamily,
143
- b2 as FontPlugin,
143
+ a2 as FontPlugin,
144
144
  P as Palette,
145
- r as PaletteApi,
146
- s as PaletteModule,
145
+ l as PaletteApi,
146
+ m as PaletteModule,
147
147
  P2 as PluginAbstract,
148
- v as PluginApi,
149
- a2 as PluginImplAbstract,
150
- u as PluginModule,
148
+ n as PluginApi,
149
+ b2 as PluginImplAbstract,
150
+ o as PluginModule,
151
151
  V as Variant,
152
- z as Variants,
153
- c as bootstrap,
154
- d as capitalizeFirstLetter,
155
- m as defaultColors,
152
+ p as Variants,
153
+ q as bootstrap,
154
+ r as capitalizeFirstLetter,
155
+ s as defaultColors,
156
156
  d2 as defineConfig,
157
157
  esbuildPlugin,
158
- F as expressiveVariant,
159
- g as getInitialToneFromBackground,
160
- w as getPiecewiseHue,
161
- x as getRotatedHue,
162
- l as highestSurface,
158
+ t as expressiveVariant,
159
+ u as getInitialToneFromBackground,
160
+ v as getPiecewiseHue,
161
+ w as getRotatedHue,
162
+ x as highestSurface,
163
163
  loadFromPath,
164
- p as loader,
165
- G as neutralVariant,
164
+ y as loader,
165
+ z as neutralVariant,
166
166
  r2 as resolveConfig,
167
167
  rollupPlugin,
168
168
  B as tonalSpotVariant,
169
- t as toneDeltaPair,
169
+ E as toneDeltaPair,
170
170
  unpluginUdixioTheme,
171
- y as variant,
172
- E as vibrantVariant,
171
+ F as variant,
172
+ G as vibrantVariant,
173
173
  vitePlugin,
174
174
  webpackPlugin
175
175
  };
@@ -1 +1 @@
1
- {"version":3,"file":"udixio.variant.d.ts","sourceRoot":"","sources":["../../../src/variant/variants/udixio.variant.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2C,OAAO,EAAE,MAAM,YAAY,CAAC;AAC9E,OAAO,EAEL,eAAe,EAIhB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAIL,QAAQ,EAER,YAAY,EAEb,MAAM,aAAa,CAAC;AAGrB,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAyCxC,eAAO,MAAM,6BAA6B,GACxC,KAAK,OAAO,EACZ,QAAQ,YAAY,GAAG,QAAQ,EAC/B,SAAS;IACP,OAAO,EAAE,eAAe,CAAC;IACzB,YAAY,CAAC,EAAE,eAAe,CAAC;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,WAwBF,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,OAiwB1B,CAAC"}
1
+ {"version":3,"file":"udixio.variant.d.ts","sourceRoot":"","sources":["../../../src/variant/variants/udixio.variant.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2C,OAAO,EAAE,MAAM,YAAY,CAAC;AAC9E,OAAO,EAEL,eAAe,EAIhB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAIL,QAAQ,EAER,YAAY,EAEb,MAAM,aAAa,CAAC;AAGrB,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAyCxC,eAAO,MAAM,6BAA6B,GACxC,KAAK,OAAO,EACZ,QAAQ,YAAY,GAAG,QAAQ,EAC/B,SAAS;IACP,OAAO,EAAE,eAAe,CAAC;IACzB,YAAY,CAAC,EAAE,eAAe,CAAC;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,WAuBF,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,OAiwB1B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@udixio/theme",
3
- "version": "2.1.12",
3
+ "version": "2.1.13",
4
4
  "type": "module",
5
5
  "main": "./dist/node.js",
6
6
  "module": "./dist/node.js",
@@ -78,7 +78,6 @@ export const createMinContrastToneAdjuster = (
78
78
  const baseTone = (colors.get(selfKey) as ColorFromPalette).options.tone;
79
79
 
80
80
  let selfTone = baseTone;
81
- console.log('contrast ratio2', referenceTone, selfTone);
82
81
  if (Contrast.ratioOfTones(referenceTone, selfTone) < minContrast) {
83
82
  const ratio = calculateToneAdjustmentPercentage(
84
83
  referenceTone,