@udixio/theme 1.1.0 → 1.2.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 +25 -0
- package/bin/main.ts +85 -0
- package/dist/API.d.ts +1 -0
- package/dist/API.d.ts.map +1 -1
- package/dist/bin.cjs +64 -0
- package/dist/bin.js +63 -0
- package/dist/browser.cjs +40 -0
- package/dist/browser.js +40 -0
- package/dist/config/config.interface.d.ts.map +1 -0
- package/dist/config/define-config.d.ts.map +1 -0
- package/dist/config/index.d.ts +3 -0
- package/dist/config/index.d.ts.map +1 -0
- package/dist/config/index.node.d.ts +2 -0
- package/dist/config/index.node.d.ts.map +1 -0
- package/dist/config/resolver-config.d.ts +11 -0
- package/dist/config/resolver-config.d.ts.map +1 -0
- package/dist/define-config-BFo7Sy7c.cjs +399 -0
- package/dist/define-config-CGG8l3fb.js +400 -0
- package/dist/index.browser.d.ts +2 -0
- package/dist/index.browser.d.ts.map +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.node.d.ts +4 -0
- package/dist/index.node.d.ts.map +1 -0
- package/dist/load-from-path-BvdfXUD0.cjs +78 -0
- package/dist/load-from-path-CFpw2P_Y.js +39 -0
- package/dist/loader/index.d.ts +2 -0
- package/dist/loader/index.d.ts.map +1 -0
- package/dist/loader/index.node.d.ts +3 -0
- package/dist/loader/index.node.d.ts.map +1 -0
- package/dist/loader/load-from-path.d.ts +5 -0
- package/dist/loader/load-from-path.d.ts.map +1 -0
- package/dist/loader/loader.d.ts +3 -0
- package/dist/loader/loader.d.ts.map +1 -0
- package/dist/loader/unplugin.d.ts +16 -0
- package/dist/loader/unplugin.d.ts.map +1 -0
- package/dist/{index.js → loader-C_BIrsO2.js} +58 -557
- package/dist/{index.cjs → loader-TksB6_mM.cjs} +32 -572
- package/dist/node.cjs +192 -0
- package/dist/node.js +171 -0
- package/dist/plugin/plugin.api.d.ts +1 -1
- package/dist/plugin/plugin.api.d.ts.map +1 -1
- package/package.json +27 -10
- package/src/API.ts +4 -0
- package/src/config/index.node.ts +1 -0
- package/src/{adapter → config}/index.ts +0 -1
- package/src/config/resolver-config.ts +49 -0
- package/src/index.browser.ts +1 -0
- package/src/index.node.ts +3 -0
- package/src/index.ts +2 -2
- package/src/loader/index.node.ts +2 -0
- package/src/loader/index.ts +1 -0
- package/src/loader/load-from-path.ts +9 -0
- package/src/{adapter/adapter.abstract.ts → loader/loader.ts} +27 -28
- package/src/loader/unplugin.ts +158 -0
- package/src/plugin/plugin.api.ts +4 -4
- package/vite.config.ts +18 -4
- package/dist/adapter/adapter.abstract.d.ts +0 -10
- package/dist/adapter/adapter.abstract.d.ts.map +0 -1
- package/dist/adapter/config.interface.d.ts.map +0 -1
- package/dist/adapter/define-config.d.ts.map +0 -1
- package/dist/adapter/file-adapter.mixin.d.ts +0 -18
- package/dist/adapter/file-adapter.mixin.d.ts.map +0 -1
- package/dist/adapter/index.d.ts +0 -4
- package/dist/adapter/index.d.ts.map +0 -1
- package/dist/adapters/index.d.ts +0 -3
- package/dist/adapters/index.d.ts.map +0 -1
- package/dist/adapters/node.adapter.d.ts +0 -7
- package/dist/adapters/node.adapter.d.ts.map +0 -1
- package/dist/adapters/vite.adapter.d.ts +0 -3
- package/dist/adapters/vite.adapter.d.ts.map +0 -1
- package/src/adapter/file-adapter.mixin.ts +0 -72
- package/src/adapters/index.ts +0 -2
- package/src/adapters/node.adapter.ts +0 -57
- package/src/adapters/vite.adapter.ts +0 -79
- /package/dist/{adapter → config}/config.interface.d.ts +0 -0
- /package/dist/{adapter → config}/define-config.d.ts +0 -0
- /package/src/{adapter → config}/config.interface.ts +0 -0
- /package/src/{adapter → config}/define-config.ts +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,28 @@
|
|
|
1
|
+
## 1.2.0 (2025-08-27)
|
|
2
|
+
|
|
3
|
+
### 🚀 Features
|
|
4
|
+
|
|
5
|
+
- **theme, tailwind, ui-react:** update package entries and async plugin resolution ([be9c65c](https://github.com/Udixio/UI/commit/be9c65c))
|
|
6
|
+
- **theme:** add browser and node-specific entry points with updated exports ([349ae2d](https://github.com/Udixio/UI/commit/349ae2d))
|
|
7
|
+
- **theme, ui-react, tailwind:** introduce node polyfills and improve async support ([f5c816a](https://github.com/Udixio/UI/commit/f5c816a))
|
|
8
|
+
- **theme:** enhance loader with async support and API improvements ([d524dcf](https://github.com/Udixio/UI/commit/d524dcf))
|
|
9
|
+
- **theme:** implement lazy loading for `unplugin` to optimize imports ([c7aa0c1](https://github.com/Udixio/UI/commit/c7aa0c1))
|
|
10
|
+
- integrate `rollup-plugin-visualizer` into Vite configs ([c92311a](https://github.com/Udixio/UI/commit/c92311a))
|
|
11
|
+
- **theme:** refactor loader with `unplugin` and enhance plugin support ([4b45480](https://github.com/Udixio/UI/commit/4b45480))
|
|
12
|
+
- **theme:** enhance CLI with `commander` and better logging via `chalk` ([d1b2d56](https://github.com/Udixio/UI/commit/d1b2d56))
|
|
13
|
+
- **theme:** simplify loader utilities and remove legacy adapters ([781847e](https://github.com/Udixio/UI/commit/781847e))
|
|
14
|
+
- **theme:** refactor configuration management and introduce CLI support ([c68eaa9](https://github.com/Udixio/UI/commit/c68eaa9))
|
|
15
|
+
|
|
16
|
+
### 🩹 Fixes
|
|
17
|
+
|
|
18
|
+
- **theme:** update `exports` field for accurate node entry resolution ([b41202f](https://github.com/Udixio/UI/commit/b41202f))
|
|
19
|
+
- **theme:** correct `exports` field for `node` entry mappings ([df9210f](https://github.com/Udixio/UI/commit/df9210f))
|
|
20
|
+
- **theme:** update exports to use `unplugin` in loader index ([9f1dce4](https://github.com/Udixio/UI/commit/9f1dce4))
|
|
21
|
+
|
|
22
|
+
### ❤️ Thank You
|
|
23
|
+
|
|
24
|
+
- Joël VIGREUX
|
|
25
|
+
|
|
1
26
|
## 1.1.0 (2025-08-25)
|
|
2
27
|
|
|
3
28
|
### 🚀 Features
|
package/bin/main.ts
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { Command } from 'commander';
|
|
2
|
+
import chokidar from 'chokidar';
|
|
3
|
+
import chalk from 'chalk';
|
|
4
|
+
import { loadFromPath } from '../src/loader/load-from-path';
|
|
5
|
+
|
|
6
|
+
const program = new Command();
|
|
7
|
+
|
|
8
|
+
async function runOnce(configPath: string) {
|
|
9
|
+
try {
|
|
10
|
+
console.log(chalk.blue('🔨 Building theme from'), chalk.cyan(configPath));
|
|
11
|
+
await loadFromPath(configPath);
|
|
12
|
+
console.log(chalk.green('✅ Theme built successfully!'));
|
|
13
|
+
} catch (error) {
|
|
14
|
+
console.error(
|
|
15
|
+
chalk.red('❌ Build failed:'),
|
|
16
|
+
error instanceof Error ? error.message : error,
|
|
17
|
+
);
|
|
18
|
+
throw error;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
async function watchMode(configPath: string) {
|
|
23
|
+
console.log(chalk.yellow('👀 Watching for changes...'));
|
|
24
|
+
|
|
25
|
+
// Build initial
|
|
26
|
+
await runOnce(configPath);
|
|
27
|
+
|
|
28
|
+
// Setup watcher
|
|
29
|
+
const exts = ['.ts', '.js', '.mjs', '.cjs'];
|
|
30
|
+
const base = configPath.replace(/\.(ts|js|mjs|cjs)$/i, '');
|
|
31
|
+
const files = exts.map((e) => base + e);
|
|
32
|
+
|
|
33
|
+
const watcher = chokidar.watch(files, {
|
|
34
|
+
ignoreInitial: true,
|
|
35
|
+
persistent: true,
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
watcher.on('change', async (path) => {
|
|
39
|
+
console.log(chalk.gray(`\n📝 File changed:`), chalk.cyan(path));
|
|
40
|
+
try {
|
|
41
|
+
await runOnce(configPath);
|
|
42
|
+
} catch (error) {
|
|
43
|
+
console.error(chalk.red('Build failed, waiting for next change...\n'));
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
watcher.on('error', (error) => {
|
|
48
|
+
console.error(chalk.red('❌ Watcher error:'), error);
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
// Graceful shutdown
|
|
52
|
+
process.on('SIGINT', () => {
|
|
53
|
+
console.log(chalk.yellow('\n👋 Stopping watcher...'));
|
|
54
|
+
watcher.close();
|
|
55
|
+
process.exit(0);
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
program
|
|
60
|
+
.name('@udixio/theme')
|
|
61
|
+
.description('Build and watch theme configurations')
|
|
62
|
+
.version('1.0.0');
|
|
63
|
+
|
|
64
|
+
program
|
|
65
|
+
.command('build')
|
|
66
|
+
.description('Build theme from configuration file')
|
|
67
|
+
.option('-w, --watch', 'watch for changes and rebuild automatically')
|
|
68
|
+
.option('-c, --config <path>', 'path to config file', './theme.config')
|
|
69
|
+
.action(async (options) => {
|
|
70
|
+
try {
|
|
71
|
+
if (options.watch) {
|
|
72
|
+
await watchMode(options.config);
|
|
73
|
+
} else {
|
|
74
|
+
await runOnce(options.config);
|
|
75
|
+
}
|
|
76
|
+
} catch (error) {
|
|
77
|
+
console.error(
|
|
78
|
+
chalk.red('💥 Unexpected error:'),
|
|
79
|
+
error instanceof Error ? error.message : error,
|
|
80
|
+
);
|
|
81
|
+
process.exit(1);
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
|
|
85
|
+
program.parse();
|
package/dist/API.d.ts
CHANGED
package/dist/API.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"API.d.ts","sourceRoot":"","sources":["../src/API.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAErC,qBAAa,GAAG;IACP,MAAM,EAAE,QAAQ,CAAC;IACjB,MAAM,EAAE,QAAQ,CAAC;IACjB,OAAO,EAAE,SAAS,CAAC;gBAEd,EACV,QAAQ,EACR,QAAQ,EACR,SAAS,GACV,EAAE;QACD,QAAQ,EAAE,QAAQ,CAAC;QACnB,QAAQ,EAAE,QAAQ,CAAC;QACnB,SAAS,EAAE,SAAS,CAAC;KACtB;
|
|
1
|
+
{"version":3,"file":"API.d.ts","sourceRoot":"","sources":["../src/API.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAErC,qBAAa,GAAG;IACP,MAAM,EAAE,QAAQ,CAAC;IACjB,MAAM,EAAE,QAAQ,CAAC;IACjB,OAAO,EAAE,SAAS,CAAC;gBAEd,EACV,QAAQ,EACR,QAAQ,EACR,SAAS,GACV,EAAE;QACD,QAAQ,EAAE,QAAQ,CAAC;QACnB,QAAQ,EAAE,QAAQ,CAAC;QACnB,SAAS,EAAE,SAAS,CAAC;KACtB;IAMK,IAAI;CAGX"}
|
package/dist/bin.cjs
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const commander = require("commander");
|
|
3
|
+
const chokidar = require("chokidar");
|
|
4
|
+
const chalk = require("chalk");
|
|
5
|
+
const loadFromPath = require("./load-from-path-BvdfXUD0.cjs");
|
|
6
|
+
const program = new commander.Command();
|
|
7
|
+
async function runOnce(configPath) {
|
|
8
|
+
try {
|
|
9
|
+
console.log(chalk.blue("🔨 Building theme from"), chalk.cyan(configPath));
|
|
10
|
+
await loadFromPath.loadFromPath(configPath);
|
|
11
|
+
console.log(chalk.green("✅ Theme built successfully!"));
|
|
12
|
+
} catch (error) {
|
|
13
|
+
console.error(
|
|
14
|
+
chalk.red("❌ Build failed:"),
|
|
15
|
+
error instanceof Error ? error.message : error
|
|
16
|
+
);
|
|
17
|
+
throw error;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
async function watchMode(configPath) {
|
|
21
|
+
console.log(chalk.yellow("👀 Watching for changes..."));
|
|
22
|
+
await runOnce(configPath);
|
|
23
|
+
const exts = [".ts", ".js", ".mjs", ".cjs"];
|
|
24
|
+
const base = configPath.replace(/\.(ts|js|mjs|cjs)$/i, "");
|
|
25
|
+
const files = exts.map((e) => base + e);
|
|
26
|
+
const watcher = chokidar.watch(files, {
|
|
27
|
+
ignoreInitial: true,
|
|
28
|
+
persistent: true
|
|
29
|
+
});
|
|
30
|
+
watcher.on("change", async (path) => {
|
|
31
|
+
console.log(chalk.gray(`
|
|
32
|
+
📝 File changed:`), chalk.cyan(path));
|
|
33
|
+
try {
|
|
34
|
+
await runOnce(configPath);
|
|
35
|
+
} catch (error) {
|
|
36
|
+
console.error(chalk.red("Build failed, waiting for next change...\n"));
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
watcher.on("error", (error) => {
|
|
40
|
+
console.error(chalk.red("❌ Watcher error:"), error);
|
|
41
|
+
});
|
|
42
|
+
process.on("SIGINT", () => {
|
|
43
|
+
console.log(chalk.yellow("\n👋 Stopping watcher..."));
|
|
44
|
+
watcher.close();
|
|
45
|
+
process.exit(0);
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
program.name("@udixio/theme").description("Build and watch theme configurations").version("1.0.0");
|
|
49
|
+
program.command("build").description("Build theme from configuration file").option("-w, --watch", "watch for changes and rebuild automatically").option("-c, --config <path>", "path to config file", "./theme.config").action(async (options) => {
|
|
50
|
+
try {
|
|
51
|
+
if (options.watch) {
|
|
52
|
+
await watchMode(options.config);
|
|
53
|
+
} else {
|
|
54
|
+
await runOnce(options.config);
|
|
55
|
+
}
|
|
56
|
+
} catch (error) {
|
|
57
|
+
console.error(
|
|
58
|
+
chalk.red("💥 Unexpected error:"),
|
|
59
|
+
error instanceof Error ? error.message : error
|
|
60
|
+
);
|
|
61
|
+
process.exit(1);
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
program.parse();
|
package/dist/bin.js
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { Command } from "commander";
|
|
2
|
+
import chokidar from "chokidar";
|
|
3
|
+
import chalk from "chalk";
|
|
4
|
+
import { l as loadFromPath } from "./load-from-path-CFpw2P_Y.js";
|
|
5
|
+
const program = new Command();
|
|
6
|
+
async function runOnce(configPath) {
|
|
7
|
+
try {
|
|
8
|
+
console.log(chalk.blue("🔨 Building theme from"), chalk.cyan(configPath));
|
|
9
|
+
await loadFromPath(configPath);
|
|
10
|
+
console.log(chalk.green("✅ Theme built successfully!"));
|
|
11
|
+
} catch (error) {
|
|
12
|
+
console.error(
|
|
13
|
+
chalk.red("❌ Build failed:"),
|
|
14
|
+
error instanceof Error ? error.message : error
|
|
15
|
+
);
|
|
16
|
+
throw error;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
async function watchMode(configPath) {
|
|
20
|
+
console.log(chalk.yellow("👀 Watching for changes..."));
|
|
21
|
+
await runOnce(configPath);
|
|
22
|
+
const exts = [".ts", ".js", ".mjs", ".cjs"];
|
|
23
|
+
const base = configPath.replace(/\.(ts|js|mjs|cjs)$/i, "");
|
|
24
|
+
const files = exts.map((e) => base + e);
|
|
25
|
+
const watcher = chokidar.watch(files, {
|
|
26
|
+
ignoreInitial: true,
|
|
27
|
+
persistent: true
|
|
28
|
+
});
|
|
29
|
+
watcher.on("change", async (path) => {
|
|
30
|
+
console.log(chalk.gray(`
|
|
31
|
+
📝 File changed:`), chalk.cyan(path));
|
|
32
|
+
try {
|
|
33
|
+
await runOnce(configPath);
|
|
34
|
+
} catch (error) {
|
|
35
|
+
console.error(chalk.red("Build failed, waiting for next change...\n"));
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
watcher.on("error", (error) => {
|
|
39
|
+
console.error(chalk.red("❌ Watcher error:"), error);
|
|
40
|
+
});
|
|
41
|
+
process.on("SIGINT", () => {
|
|
42
|
+
console.log(chalk.yellow("\n👋 Stopping watcher..."));
|
|
43
|
+
watcher.close();
|
|
44
|
+
process.exit(0);
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
program.name("@udixio/theme").description("Build and watch theme configurations").version("1.0.0");
|
|
48
|
+
program.command("build").description("Build theme from configuration file").option("-w, --watch", "watch for changes and rebuild automatically").option("-c, --config <path>", "path to config file", "./theme.config").action(async (options) => {
|
|
49
|
+
try {
|
|
50
|
+
if (options.watch) {
|
|
51
|
+
await watchMode(options.config);
|
|
52
|
+
} else {
|
|
53
|
+
await runOnce(options.config);
|
|
54
|
+
}
|
|
55
|
+
} catch (error) {
|
|
56
|
+
console.error(
|
|
57
|
+
chalk.red("💥 Unexpected error:"),
|
|
58
|
+
error instanceof Error ? error.message : error
|
|
59
|
+
);
|
|
60
|
+
process.exit(1);
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
program.parse();
|
package/dist/browser.cjs
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const loader = require("./loader-TksB6_mM.cjs");
|
|
4
|
+
const defineConfig = require("./define-config-BFo7Sy7c.cjs");
|
|
5
|
+
exports.API = loader.API;
|
|
6
|
+
exports.AppContainer = loader.AppContainer;
|
|
7
|
+
exports.AppModule = loader.AppModule;
|
|
8
|
+
exports.ColorApi = loader.ColorApi;
|
|
9
|
+
exports.ColorManager = loader.ColorManager;
|
|
10
|
+
exports.ColorModule = loader.ColorModule;
|
|
11
|
+
exports.ConfigurableColor = loader.ConfigurableColor;
|
|
12
|
+
exports.ContrastCurve = loader.ContrastCurve;
|
|
13
|
+
exports.DynamicColor = loader.DynamicColor;
|
|
14
|
+
exports.PluginApi = loader.PluginApi;
|
|
15
|
+
exports.PluginModule = loader.PluginModule;
|
|
16
|
+
exports.Scheme = loader.Scheme;
|
|
17
|
+
exports.SchemeManager = loader.SchemeManager;
|
|
18
|
+
exports.ThemeApi = loader.ThemeApi;
|
|
19
|
+
exports.ThemeModule = loader.ThemeModule;
|
|
20
|
+
exports.ToneDeltaPair = loader.ToneDeltaPair;
|
|
21
|
+
exports.Variant = loader.Variant;
|
|
22
|
+
exports.VariantManager = loader.VariantManager;
|
|
23
|
+
exports.bootstrap = loader.bootstrap;
|
|
24
|
+
exports.defaultColors = loader.defaultColors;
|
|
25
|
+
exports.extendSpecVersion = loader.extendSpecVersion;
|
|
26
|
+
exports.getPiecewiseHue = loader.getPiecewiseHue;
|
|
27
|
+
exports.getRotatedHue = loader.getRotatedHue;
|
|
28
|
+
exports.highestSurface = loader.highestSurface;
|
|
29
|
+
exports.loader = loader.loader;
|
|
30
|
+
exports.registerModule = loader.registerModule;
|
|
31
|
+
exports.tonalSpotVariant = loader.tonalSpotVariant;
|
|
32
|
+
exports.FontFamily = defineConfig.FontFamily;
|
|
33
|
+
exports.FontPlugin = defineConfig.FontPlugin;
|
|
34
|
+
exports.PluginAbstract = defineConfig.PluginAbstract;
|
|
35
|
+
exports.PluginImplAbstract = defineConfig.PluginImplAbstract;
|
|
36
|
+
exports.Variants = defineConfig.Variants;
|
|
37
|
+
exports.defineConfig = defineConfig.defineConfig;
|
|
38
|
+
exports.expressiveVariant = defineConfig.expressiveVariant;
|
|
39
|
+
exports.neutralVariant = defineConfig.neutralVariant;
|
|
40
|
+
exports.vibrantVariant = defineConfig.vibrantVariant;
|
package/dist/browser.js
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { b, A, a, C, c, d, e, i, D, k, P, n, S, o, m, T, V, s, g, f, j, p, q, h, l, r, t } from "./loader-C_BIrsO2.js";
|
|
2
|
+
import { F, b as b2, P as P2, a as a2, V as V2, d as d2, e as e2, n as n2, v } from "./define-config-CGG8l3fb.js";
|
|
3
|
+
export {
|
|
4
|
+
b as API,
|
|
5
|
+
A as AppContainer,
|
|
6
|
+
a as AppModule,
|
|
7
|
+
C as ColorApi,
|
|
8
|
+
c as ColorManager,
|
|
9
|
+
d as ColorModule,
|
|
10
|
+
e as ConfigurableColor,
|
|
11
|
+
i as ContrastCurve,
|
|
12
|
+
D as DynamicColor,
|
|
13
|
+
F as FontFamily,
|
|
14
|
+
b2 as FontPlugin,
|
|
15
|
+
P2 as PluginAbstract,
|
|
16
|
+
k as PluginApi,
|
|
17
|
+
a2 as PluginImplAbstract,
|
|
18
|
+
P as PluginModule,
|
|
19
|
+
n as Scheme,
|
|
20
|
+
S as SchemeManager,
|
|
21
|
+
o as ThemeApi,
|
|
22
|
+
m as ThemeModule,
|
|
23
|
+
T as ToneDeltaPair,
|
|
24
|
+
V as Variant,
|
|
25
|
+
s as VariantManager,
|
|
26
|
+
V2 as Variants,
|
|
27
|
+
g as bootstrap,
|
|
28
|
+
f as defaultColors,
|
|
29
|
+
d2 as defineConfig,
|
|
30
|
+
e2 as expressiveVariant,
|
|
31
|
+
j as extendSpecVersion,
|
|
32
|
+
p as getPiecewiseHue,
|
|
33
|
+
q as getRotatedHue,
|
|
34
|
+
h as highestSurface,
|
|
35
|
+
l as loader,
|
|
36
|
+
n2 as neutralVariant,
|
|
37
|
+
r as registerModule,
|
|
38
|
+
t as tonalSpotVariant,
|
|
39
|
+
v as vibrantVariant
|
|
40
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.interface.d.ts","sourceRoot":"","sources":["../../src/config/config.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AACnC,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAE3C,MAAM,WAAW,eAAe;IAC9B,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,gBAAgB,GAAG,gBAAgB,EAAE,CAAC;IAC/C,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClC,OAAO,CAAC,EAAE,cAAc,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,CAAC;CACtC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"define-config.d.ts","sourceRoot":"","sources":["../../src/config/define-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,wBAAgB,YAAY,CAAC,YAAY,EAAE,eAAe,GAAG,eAAe,CAQ3E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.node.d.ts","sourceRoot":"","sources":["../../src/config/index.node.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ConfigInterface } from './index';
|
|
2
|
+
export interface ResolvedConfigResult {
|
|
3
|
+
config: ConfigInterface;
|
|
4
|
+
filePath: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Resolve and load theme.config.{ts,js,mjs,cjs} using JITI, independent of any bundler.
|
|
8
|
+
* @param configPath base path without extension or full path with/without extension
|
|
9
|
+
*/
|
|
10
|
+
export declare function resolveConfig(configPath?: string): Promise<ResolvedConfigResult>;
|
|
11
|
+
//# sourceMappingURL=resolver-config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolver-config.d.ts","sourceRoot":"","sources":["../../src/config/resolver-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAG1C,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,eAAe,CAAC;IACxB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;;GAGG;AACH,wBAAsB,aAAa,CACjC,UAAU,SAAmB,GAC5B,OAAO,CAAC,oBAAoB,CAAC,CAkC/B"}
|