@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 +10 -0
- package/dist/bin.cjs +1 -1
- package/dist/bin.js +1 -1
- package/dist/browser.cjs +2 -2
- package/dist/browser.js +32 -32
- package/dist/{font.plugin-B6HEs4Om.cjs → font.plugin-B9NdGRxC.cjs} +1 -1
- package/dist/{font.plugin-BorVbapj.js → font.plugin-b3GDzC1A.js} +3 -3
- package/dist/{load-from-path-CHmj8u_v.js → load-from-path-B7BI6LZa.js} +1 -1
- package/dist/{load-from-path-DVvlFI1M.cjs → load-from-path-DDQroKk-.cjs} +2 -2
- package/dist/{loader-BZta4ulw.cjs → loader-CgJ2JY88.cjs} +0 -1
- package/dist/{loader-DVtdg4Xh.js → loader-Cy_VzOHt.js} +28 -29
- package/dist/node.cjs +3 -3
- package/dist/node.js +34 -34
- package/dist/variant/variants/udixio.variant.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/variant/variants/udixio.variant.ts +0 -1
package/CHANGELOG.md
CHANGED
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-
|
|
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-
|
|
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-
|
|
4
|
-
const font_plugin = require("./font.plugin-
|
|
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,
|
|
2
|
-
import { F as F2,
|
|
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
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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
|
-
|
|
19
|
+
a2 as FontPlugin,
|
|
20
20
|
P as Palette,
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
l as PaletteApi,
|
|
22
|
+
m as PaletteModule,
|
|
23
23
|
P2 as PluginAbstract,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
n as PluginApi,
|
|
25
|
+
b2 as PluginImplAbstract,
|
|
26
|
+
o as PluginModule,
|
|
27
27
|
V as Variant,
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
p as Variants,
|
|
29
|
+
q as bootstrap,
|
|
30
|
+
r as capitalizeFirstLetter,
|
|
31
|
+
s as defaultColors,
|
|
32
32
|
d2 as defineConfig,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
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
|
-
|
|
42
|
-
|
|
43
|
-
|
|
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-
|
|
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-
|
|
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
|
-
|
|
226
|
-
|
|
225
|
+
FontPlugin as a,
|
|
226
|
+
PluginImplAbstract as b,
|
|
227
227
|
defineConfig as d
|
|
228
228
|
};
|
|
@@ -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-
|
|
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-
|
|
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
|
-
|
|
3879
|
+
Color as C,
|
|
3881
3880
|
DynamicColor as D,
|
|
3882
|
-
|
|
3883
|
-
|
|
3884
|
-
|
|
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
|
-
|
|
3890
|
-
|
|
3891
|
-
|
|
3892
|
-
|
|
3893
|
-
|
|
3894
|
-
|
|
3895
|
-
|
|
3896
|
-
|
|
3897
|
-
|
|
3898
|
-
|
|
3899
|
-
|
|
3900
|
-
|
|
3901
|
-
|
|
3902
|
-
|
|
3903
|
-
|
|
3904
|
-
|
|
3905
|
-
|
|
3906
|
-
|
|
3907
|
-
|
|
3908
|
-
|
|
3909
|
-
|
|
3910
|
-
|
|
3911
|
-
|
|
3912
|
-
|
|
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-
|
|
26
|
-
const font_plugin = require("./font.plugin-
|
|
27
|
-
const loadFromPath = require("./load-from-path-
|
|
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,
|
|
2
|
-
import { F as F2,
|
|
3
|
-
import { l as loadFromPath } from "./load-from-path-
|
|
4
|
-
import { r as r2 } from "./load-from-path-
|
|
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
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
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
|
-
|
|
143
|
+
a2 as FontPlugin,
|
|
144
144
|
P as Palette,
|
|
145
|
-
|
|
146
|
-
|
|
145
|
+
l as PaletteApi,
|
|
146
|
+
m as PaletteModule,
|
|
147
147
|
P2 as PluginAbstract,
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
148
|
+
n as PluginApi,
|
|
149
|
+
b2 as PluginImplAbstract,
|
|
150
|
+
o as PluginModule,
|
|
151
151
|
V as Variant,
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
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
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
158
|
+
t as expressiveVariant,
|
|
159
|
+
u as getInitialToneFromBackground,
|
|
160
|
+
v as getPiecewiseHue,
|
|
161
|
+
w as getRotatedHue,
|
|
162
|
+
x as highestSurface,
|
|
163
163
|
loadFromPath,
|
|
164
|
-
|
|
165
|
-
|
|
164
|
+
y as loader,
|
|
165
|
+
z as neutralVariant,
|
|
166
166
|
r2 as resolveConfig,
|
|
167
167
|
rollupPlugin,
|
|
168
168
|
B as tonalSpotVariant,
|
|
169
|
-
|
|
169
|
+
E as toneDeltaPair,
|
|
170
170
|
unpluginUdixioTheme,
|
|
171
|
-
|
|
172
|
-
|
|
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,
|
|
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
|
@@ -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,
|