@udixio/theme 2.1.6 → 2.1.8

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
+ ## 2.1.8 (2026-01-07)
2
+
3
+ ### 🩹 Fixes
4
+
5
+ - **theme:** simplify tone adjustment logic for `udixio` variant ([8f90d7f](https://github.com/Udixio/UI/commit/8f90d7f))
6
+
7
+ ### ❤️ Thank You
8
+
9
+ - Joël VIGREUX
10
+
11
+ ## 2.1.7 (2026-01-07)
12
+
13
+ This was a version bump only for @udixio/theme to align it with other projects, there were no code changes.
14
+
1
15
  ## 2.1.6 (2025-12-16)
2
16
 
3
17
  This was a version bump only for @udixio/theme to align it with other projects, there were no code changes.
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-C3UAcZqv.cjs");
5
+ const loadFromPath = require("./load-from-path-Bbqr4QvZ.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-BCh7ss_Z.js";
4
+ import { l as loadFromPath } from "./load-from-path-G7e3Ww6B.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-BbjdPvAo.cjs");
4
- const font_plugin = require("./font.plugin-CkYgSR9K.cjs");
3
+ const loader = require("./loader-TiTNDWGP.cjs");
4
+ const font_plugin = require("./font.plugin-B-Jmkkm-.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,5 +1,5 @@
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-C-8QkFag.js";
2
- import { F as F2, b as b2, P as P2, a as a2, d as d2 } from "./font.plugin-BU5iUqHq.js";
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-BIZmqdOm.js";
2
+ import { F as F2, b as b2, P as P2, a as a2, d as d2 } from "./font.plugin-D6pbgha-.js";
3
3
  export {
4
4
  A as API,
5
5
  a as AppContainer,
@@ -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-BbjdPvAo.cjs");
5
+ require("./loader-TiTNDWGP.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-C-8QkFag.js";
4
+ import "./loader-BIZmqdOm.js";
5
5
  class PluginAbstract {
6
6
  constructor(options) {
7
7
  __publicField(this, "options");
@@ -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-BbjdPvAo.cjs");
24
+ const loader = require("./loader-TiTNDWGP.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-C3UAcZqv.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-Bbqr4QvZ.cjs", document.baseURI).href, {
48
48
  debug: process.env.NODE_ENV === "development",
49
49
  fsCache: true,
50
50
  interopDefault: true
@@ -1,4 +1,4 @@
1
- import { p as loader } from "./loader-C-8QkFag.js";
1
+ import { p as loader } from "./loader-BIZmqdOm.js";
2
2
  import * as fs from "node:fs";
3
3
  async function resolveConfig(configPath = "./theme.config") {
4
4
  const { createJiti } = await import("jiti");
@@ -3481,14 +3481,14 @@ const udixioVariant = variant({
3481
3481
  },
3482
3482
  isBackground: true,
3483
3483
  background: () => highestSurface(c, colors),
3484
- adjustTone: () => c.variant.name == "fidelity" ? toneDeltaPair(
3484
+ adjustTone: () => toneDeltaPair(
3485
3485
  colors.get("primary"),
3486
3486
  colors.get("primaryContainer"),
3487
3487
  15,
3488
3488
  "relative_darker",
3489
3489
  true,
3490
3490
  "farther"
3491
- ) : void 0,
3491
+ ),
3492
3492
  contrastCurve: () => c.contrastLevel > 0 ? getCurve(1.5) : void 0
3493
3493
  },
3494
3494
  onPrimaryContainer: {
@@ -3482,14 +3482,14 @@ const udixioVariant = variant({
3482
3482
  },
3483
3483
  isBackground: true,
3484
3484
  background: () => highestSurface(c, colors),
3485
- adjustTone: () => c.variant.name == "fidelity" ? toneDeltaPair(
3485
+ adjustTone: () => toneDeltaPair(
3486
3486
  colors.get("primary"),
3487
3487
  colors.get("primaryContainer"),
3488
3488
  15,
3489
3489
  "relative_darker",
3490
3490
  true,
3491
3491
  "farther"
3492
- ) : void 0,
3492
+ ),
3493
3493
  contrastCurve: () => c.contrastLevel > 0 ? getCurve(1.5) : void 0
3494
3494
  },
3495
3495
  onPrimaryContainer: {
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-BbjdPvAo.cjs");
26
- const font_plugin = require("./font.plugin-CkYgSR9K.cjs");
27
- const loadFromPath = require("./load-from-path-C3UAcZqv.cjs");
25
+ const loader = require("./loader-TiTNDWGP.cjs");
26
+ const font_plugin = require("./font.plugin-B-Jmkkm-.cjs");
27
+ const loadFromPath = require("./load-from-path-Bbqr4QvZ.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-C-8QkFag.js";
2
- import { F as F2, b as b2, P as P2, a as a2, d as d2 } from "./font.plugin-BU5iUqHq.js";
3
- import { l as loadFromPath } from "./load-from-path-BCh7ss_Z.js";
4
- import { r as r2 } from "./load-from-path-BCh7ss_Z.js";
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-BIZmqdOm.js";
2
+ import { F as F2, b as b2, P as P2, a as a2, d as d2 } from "./font.plugin-D6pbgha-.js";
3
+ import { l as loadFromPath } from "./load-from-path-G7e3Ww6B.js";
4
+ import { r as r2 } from "./load-from-path-G7e3Ww6B.js";
5
5
  let unpluginInstance = null;
6
6
  const createUnpluginTheme = async () => {
7
7
  if (unpluginInstance) {
@@ -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;AAuD9E,eAAO,MAAM,aAAa,EAAE,OA8wB1B,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;AAuD9E,eAAO,MAAM,aAAa,EAAE,OA4wB1B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@udixio/theme",
3
- "version": "2.1.6",
3
+ "version": "2.1.8",
4
4
  "type": "module",
5
5
  "main": "./dist/node.js",
6
6
  "module": "./dist/node.js",
@@ -463,16 +463,14 @@ export const udixioVariant: Variant = variant({
463
463
  isBackground: true,
464
464
  background: () => highestSurface(c, colors),
465
465
  adjustTone: () =>
466
- c.variant.name == 'fidelity'
467
- ? toneDeltaPair(
468
- colors.get('primary'),
469
- colors.get('primaryContainer'),
470
- 15,
471
- 'relative_darker',
472
- true,
473
- 'farther',
474
- )
475
- : undefined,
466
+ toneDeltaPair(
467
+ colors.get('primary'),
468
+ colors.get('primaryContainer'),
469
+ 15,
470
+ 'relative_darker',
471
+ true,
472
+ 'farther',
473
+ ),
476
474
  contrastCurve: () => (c.contrastLevel > 0 ? getCurve(1.5) : undefined),
477
475
  },
478
476
  onPrimaryContainer: {