tailwind-styled-v4 5.0.37 → 5.0.39
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/dist/analyzer.js +213 -161
- package/dist/analyzer.js.map +1 -1
- package/dist/analyzer.mjs +121 -83
- package/dist/analyzer.mjs.map +1 -1
- package/dist/animate.js +131 -87
- package/dist/animate.js.map +1 -1
- package/dist/animate.mjs +31 -15
- package/dist/animate.mjs.map +1 -1
- package/dist/atomic.js +107 -67
- package/dist/atomic.js.map +1 -1
- package/dist/atomic.mjs +47 -14
- package/dist/atomic.mjs.map +1 -1
- package/dist/cli.js +601 -428
- package/dist/cli.js.map +1 -1
- package/dist/cli.mjs +504 -313
- package/dist/cli.mjs.map +1 -1
- package/dist/compiler.js +833 -508
- package/dist/compiler.js.map +1 -1
- package/dist/compiler.mjs +298 -30
- package/dist/compiler.mjs.map +1 -1
- package/dist/dashboard.js +72 -41
- package/dist/dashboard.js.map +1 -1
- package/dist/dashboard.mjs +12 -6
- package/dist/dashboard.mjs.map +1 -1
- package/dist/devtools.js +335 -289
- package/dist/devtools.js.map +1 -1
- package/dist/devtools.mjs +28 -11
- package/dist/devtools.mjs.map +1 -1
- package/dist/engine.js +719 -506
- package/dist/engine.js.map +1 -1
- package/dist/engine.mjs +520 -318
- package/dist/engine.mjs.map +1 -1
- package/dist/index.d.mts +145 -319
- package/dist/index.d.ts +145 -319
- package/dist/index.js +1337 -7442
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1275 -7386
- package/dist/index.mjs.map +1 -1
- package/dist/next.js +327 -242
- package/dist/next.js.map +1 -1
- package/dist/next.mjs +272 -184
- package/dist/next.mjs.map +1 -1
- package/dist/plugin-api.js +94 -49
- package/dist/plugin-api.js.map +1 -1
- package/dist/plugin-api.mjs +26 -6
- package/dist/plugin-api.mjs.map +1 -1
- package/dist/plugin-registry.js +68 -40
- package/dist/plugin-registry.js.map +1 -1
- package/dist/plugin-registry.mjs +14 -10
- package/dist/plugin-registry.mjs.map +1 -1
- package/dist/plugin.js +102 -53
- package/dist/plugin.js.map +1 -1
- package/dist/plugin.mjs +30 -6
- package/dist/plugin.mjs.map +1 -1
- package/dist/preset.js +48 -15
- package/dist/preset.js.map +1 -1
- package/dist/preset.mjs +13 -5
- package/dist/preset.mjs.map +1 -1
- package/dist/rspack.js +108 -53
- package/dist/rspack.js.map +1 -1
- package/dist/rspack.mjs +50 -18
- package/dist/rspack.mjs.map +1 -1
- package/dist/runtime-css.js +63 -24
- package/dist/runtime-css.js.map +1 -1
- package/dist/runtime-css.mjs +15 -7
- package/dist/runtime-css.mjs.map +1 -1
- package/dist/runtime.js +98 -44
- package/dist/runtime.js.map +1 -1
- package/dist/runtime.mjs +31 -8
- package/dist/runtime.mjs.map +1 -1
- package/dist/scanner.js +164 -120
- package/dist/scanner.js.map +1 -1
- package/dist/scanner.mjs +70 -40
- package/dist/scanner.mjs.map +1 -1
- package/dist/shared.d.mts +0 -12
- package/dist/shared.d.ts +0 -12
- package/dist/shared.js +481 -299
- package/dist/shared.js.map +1 -1
- package/dist/shared.mjs +304 -133
- package/dist/shared.mjs.map +1 -1
- package/dist/storybook-addon.js +40 -10
- package/dist/storybook-addon.js.map +1 -1
- package/dist/storybook-addon.mjs +8 -3
- package/dist/storybook-addon.mjs.map +1 -1
- package/dist/svelte.js +95 -64
- package/dist/svelte.js.map +1 -1
- package/dist/svelte.mjs +37 -14
- package/dist/svelte.mjs.map +1 -1
- package/dist/syntax.js +69 -37
- package/dist/syntax.js.map +1 -1
- package/dist/syntax.mjs +8 -7
- package/dist/syntax.mjs.map +1 -1
- package/dist/testing.js +56 -18
- package/dist/testing.js.map +1 -1
- package/dist/testing.mjs +16 -3
- package/dist/testing.mjs.map +1 -1
- package/dist/theme.js +133 -74
- package/dist/theme.js.map +1 -1
- package/dist/theme.mjs +45 -14
- package/dist/theme.mjs.map +1 -1
- package/dist/turbopackLoader.js +156 -115
- package/dist/turbopackLoader.js.map +1 -1
- package/dist/turbopackLoader.mjs +135 -82
- package/dist/turbopackLoader.mjs.map +1 -1
- package/dist/tw.js +584 -423
- package/dist/tw.js.map +1 -1
- package/dist/tw.mjs +498 -311
- package/dist/tw.mjs.map +1 -1
- package/dist/vite.js +599 -450
- package/dist/vite.js.map +1 -1
- package/dist/vite.mjs +484 -332
- package/dist/vite.mjs.map +1 -1
- package/dist/vue.js +102 -70
- package/dist/vue.js.map +1 -1
- package/dist/vue.mjs +39 -15
- package/dist/vue.mjs.map +1 -1
- package/dist/webpackLoader.js +112 -77
- package/dist/webpackLoader.js.map +1 -1
- package/dist/webpackLoader.mjs +52 -18
- package/dist/webpackLoader.mjs.map +1 -1
- package/native/tailwind-styled-native.linux-x64-gnu.node +0 -0
- package/native/tailwind-styled-native.node +0 -0
- package/package.json +3 -1
package/dist/animate.js
CHANGED
|
@@ -1,23 +1,38 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
require('crypto');
|
|
4
|
-
var fs = require('fs');
|
|
5
|
-
var path = require('path');
|
|
6
|
-
var url = require('url');
|
|
7
|
-
var module$1 = require('module');
|
|
8
|
-
var zod = require('zod');
|
|
9
|
-
|
|
10
|
-
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
|
|
11
|
-
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
-
|
|
13
|
-
var fs__default = /*#__PURE__*/_interopDefault(fs);
|
|
14
|
-
var path__default = /*#__PURE__*/_interopDefault(path);
|
|
15
|
-
|
|
1
|
+
const __importMetaUrl = typeof __filename !== "undefined" ? require("node:url").pathToFileURL(__filename).href : "file://unknown";
|
|
16
2
|
/* tailwind-styled-v4 v5.0.4 | MIT | https://github.com/dictionar32/tailwind-styled-v4 */
|
|
3
|
+
"use strict";
|
|
4
|
+
var __create = Object.create;
|
|
5
|
+
var __defProp = Object.defineProperty;
|
|
6
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
17
7
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
8
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
9
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
18
10
|
var __esm = (fn, res) => function __init() {
|
|
19
11
|
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
20
12
|
};
|
|
13
|
+
var __export = (target, all) => {
|
|
14
|
+
for (var name in all)
|
|
15
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
16
|
+
};
|
|
17
|
+
var __copyProps = (to, from, except, desc) => {
|
|
18
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
19
|
+
for (let key of __getOwnPropNames(from))
|
|
20
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
21
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
22
|
+
}
|
|
23
|
+
return to;
|
|
24
|
+
};
|
|
25
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
26
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
27
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
28
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
29
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
30
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
31
|
+
mod
|
|
32
|
+
));
|
|
33
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
34
|
+
|
|
35
|
+
// packages/domain/shared/src/index.ts
|
|
21
36
|
function createDebugLogger(namespace, label) {
|
|
22
37
|
const prefix = label ? `[${namespace}:${label}]` : `[${namespace}]`;
|
|
23
38
|
return (msg) => {
|
|
@@ -36,9 +51,9 @@ function loadNativeBinding(options) {
|
|
|
36
51
|
const { runtimeDir, candidates, isValid } = options;
|
|
37
52
|
const loadErrors = [];
|
|
38
53
|
for (const candidate of candidates) {
|
|
39
|
-
const candidatePath =
|
|
54
|
+
const candidatePath = import_node_path.default.resolve(runtimeDir, candidate);
|
|
40
55
|
try {
|
|
41
|
-
if (!
|
|
56
|
+
if (!import_node_fs.default.existsSync(candidatePath) && !import_node_fs.default.existsSync(candidatePath + ".node")) {
|
|
42
57
|
continue;
|
|
43
58
|
}
|
|
44
59
|
const mod = requireNativeModule(candidatePath);
|
|
@@ -70,9 +85,9 @@ function resolveNativeBindingCandidates(options) {
|
|
|
70
85
|
}
|
|
71
86
|
}
|
|
72
87
|
if (!includeDefaultCandidates) return candidates;
|
|
73
|
-
if (
|
|
88
|
+
if (import_node_fs.default.existsSync(runtimeDir)) {
|
|
74
89
|
try {
|
|
75
|
-
for (const entry of
|
|
90
|
+
for (const entry of import_node_fs.default.readdirSync(runtimeDir)) {
|
|
76
91
|
if (entry.endsWith(".node")) candidates.push(entry);
|
|
77
92
|
}
|
|
78
93
|
} catch {
|
|
@@ -81,29 +96,35 @@ function resolveNativeBindingCandidates(options) {
|
|
|
81
96
|
const BINARY_NAMES = ["tailwind-styled-native", "tailwind_styled_parser"];
|
|
82
97
|
const napiPlatform = process.platform === "linux" && process.arch === "x64" ? "linux-x64-gnu" : process.platform === "linux" && process.arch === "arm64" ? "linux-arm64-gnu" : `${process.platform}-${process.arch}`;
|
|
83
98
|
for (const bin of BINARY_NAMES) {
|
|
84
|
-
candidates.push(
|
|
85
|
-
candidates.push(
|
|
86
|
-
candidates.push(
|
|
87
|
-
candidates.push(
|
|
88
|
-
candidates.push(
|
|
89
|
-
candidates.push(
|
|
90
|
-
candidates.push(
|
|
91
|
-
candidates.push(
|
|
92
|
-
candidates.push(
|
|
99
|
+
candidates.push(import_node_path.default.resolve(runtimeDir, `${bin}.node`));
|
|
100
|
+
candidates.push(import_node_path.default.resolve(runtimeDir, `${bin}.${napiPlatform}.node`));
|
|
101
|
+
candidates.push(import_node_path.default.resolve(runtimeDir, "..", "native", `${bin}.node`));
|
|
102
|
+
candidates.push(import_node_path.default.resolve(runtimeDir, "..", "native", `${bin}.${napiPlatform}.node`));
|
|
103
|
+
candidates.push(import_node_path.default.resolve(process.cwd(), "native", `${bin}.node`));
|
|
104
|
+
candidates.push(import_node_path.default.resolve(process.cwd(), "native", `${bin}.${napiPlatform}.node`));
|
|
105
|
+
candidates.push(import_node_path.default.resolve(runtimeDir, "..", "..", "..", "..", "native", `${bin}.node`));
|
|
106
|
+
candidates.push(import_node_path.default.resolve(runtimeDir, "..", "..", "..", "..", "native", `${bin}.${napiPlatform}.node`));
|
|
107
|
+
candidates.push(import_node_path.default.resolve(runtimeDir, "..", "..", "..", "native", `${bin}.node`));
|
|
93
108
|
}
|
|
94
109
|
return Array.from(new Set(candidates));
|
|
95
110
|
}
|
|
96
111
|
function resolveRuntimeDir(dir, importMetaUrl) {
|
|
97
|
-
if (dir) return
|
|
112
|
+
if (dir) return import_node_path.default.resolve(dir);
|
|
98
113
|
try {
|
|
99
|
-
return
|
|
114
|
+
return import_node_path.default.dirname((0, import_node_url.fileURLToPath)(importMetaUrl));
|
|
100
115
|
} catch {
|
|
101
116
|
return process.cwd();
|
|
102
117
|
}
|
|
103
118
|
}
|
|
104
|
-
var TwError, _require, LRUCache;
|
|
119
|
+
var import_node_crypto, import_node_fs, import_node_path, import_node_url, import_node_module, TwError, _require, LRUCache;
|
|
105
120
|
var init_src = __esm({
|
|
106
121
|
"packages/domain/shared/src/index.ts"() {
|
|
122
|
+
"use strict";
|
|
123
|
+
import_node_crypto = require("crypto");
|
|
124
|
+
import_node_fs = __toESM(require("fs"));
|
|
125
|
+
import_node_path = __toESM(require("path"));
|
|
126
|
+
import_node_url = require("url");
|
|
127
|
+
import_node_module = require("module");
|
|
107
128
|
TwError = class _TwError extends Error {
|
|
108
129
|
/** @deprecated Gunakan source */
|
|
109
130
|
domain;
|
|
@@ -156,7 +177,9 @@ var init_src = __esm({
|
|
|
156
177
|
return `[${this.source.toUpperCase()}:${this.code}] ${this.message}`;
|
|
157
178
|
}
|
|
158
179
|
};
|
|
159
|
-
_require =
|
|
180
|
+
_require = (0, import_node_module.createRequire)(
|
|
181
|
+
typeof __filename !== "undefined" ? `file://${__filename}` : __importMetaUrl ?? "file://unknown"
|
|
182
|
+
);
|
|
160
183
|
LRUCache = class {
|
|
161
184
|
capacity;
|
|
162
185
|
cache;
|
|
@@ -201,6 +224,24 @@ var init_src = __esm({
|
|
|
201
224
|
}
|
|
202
225
|
});
|
|
203
226
|
|
|
227
|
+
// src/umbrella/animate.ts
|
|
228
|
+
var animate_exports = {};
|
|
229
|
+
__export(animate_exports, {
|
|
230
|
+
AnimationRegistry: () => createAnimationRegistry,
|
|
231
|
+
animate: () => animate,
|
|
232
|
+
animations: () => animations,
|
|
233
|
+
compileAnimation: () => compileAnimation,
|
|
234
|
+
compileKeyframes: () => compileKeyframes,
|
|
235
|
+
createAnimationRegistry: () => createAnimationRegistry,
|
|
236
|
+
extractAnimationCss: () => extractAnimationCss,
|
|
237
|
+
getDefaultAnimationRegistry: () => getDefaultAnimationRegistry,
|
|
238
|
+
initAnimate: () => initAnimate2,
|
|
239
|
+
injectAnimationCss: () => injectAnimationCss,
|
|
240
|
+
keyframes: () => keyframes,
|
|
241
|
+
resetAnimationRegistry: () => resetAnimationRegistry
|
|
242
|
+
});
|
|
243
|
+
module.exports = __toCommonJS(animate_exports);
|
|
244
|
+
|
|
204
245
|
// packages/domain/animate/src/binding.ts
|
|
205
246
|
init_src();
|
|
206
247
|
var createAnimateBindingLoader = () => {
|
|
@@ -208,7 +249,7 @@ var createAnimateBindingLoader = () => {
|
|
|
208
249
|
const loadAnimateBinding = () => {
|
|
209
250
|
const runtimeDir = resolveRuntimeDir(
|
|
210
251
|
typeof __dirname === "string" ? __dirname : void 0,
|
|
211
|
-
|
|
252
|
+
__importMetaUrl
|
|
212
253
|
);
|
|
213
254
|
const candidates = resolveBindingCandidates(runtimeDir);
|
|
214
255
|
const { binding, loadErrors, loadedPath } = loadNativeBinding({
|
|
@@ -254,8 +295,8 @@ var createAnimateBindingLoader = () => {
|
|
|
254
295
|
var animateBindingLoader = createAnimateBindingLoader();
|
|
255
296
|
var DEBUG_NAMESPACE = "tailwind-styled:animate";
|
|
256
297
|
var debugLog = createDebugLogger(DEBUG_NAMESPACE, "tailwind-styled/animate");
|
|
257
|
-
function isAnimateModule(
|
|
258
|
-
const candidate =
|
|
298
|
+
function isAnimateModule(module2) {
|
|
299
|
+
const candidate = module2;
|
|
259
300
|
return typeof candidate?.compileAnimation === "function" && typeof candidate?.compileKeyframes === "function";
|
|
260
301
|
}
|
|
261
302
|
function resolveBindingCandidates(runtimeDir) {
|
|
@@ -384,6 +425,7 @@ function createAnimationPresets(registry) {
|
|
|
384
425
|
init_src();
|
|
385
426
|
|
|
386
427
|
// packages/domain/analyzer/src/utils.ts
|
|
428
|
+
var import_node_fs2 = __toESM(require("fs"), 1);
|
|
387
429
|
init_src();
|
|
388
430
|
var DEBUG_NAMESPACE2 = "tailwind-styled:analyzer";
|
|
389
431
|
function formatErrorMessage(error) {
|
|
@@ -392,8 +434,8 @@ function formatErrorMessage(error) {
|
|
|
392
434
|
var debugLog2 = createDebugLogger(DEBUG_NAMESPACE2, "tailwind-styled/analyzer");
|
|
393
435
|
|
|
394
436
|
// packages/domain/analyzer/src/binding.ts
|
|
395
|
-
var isAnalyzerModule = (
|
|
396
|
-
const candidate =
|
|
437
|
+
var isAnalyzerModule = (module2) => {
|
|
438
|
+
const candidate = module2;
|
|
397
439
|
return typeof candidate?.analyzeClasses === "function" || typeof candidate?.analyzeClassesWorkspace === "function";
|
|
398
440
|
};
|
|
399
441
|
var createAnalyzerBindingLoader = () => {
|
|
@@ -403,7 +445,7 @@ var createAnalyzerBindingLoader = () => {
|
|
|
403
445
|
_state.bindingPromise = (async () => {
|
|
404
446
|
const runtimeDir = resolveRuntimeDir(
|
|
405
447
|
typeof __dirname === "string" ? __dirname : void 0,
|
|
406
|
-
|
|
448
|
+
__importMetaUrl
|
|
407
449
|
);
|
|
408
450
|
const candidates = resolveNativeBindingCandidates({
|
|
409
451
|
runtimeDir,
|
|
@@ -443,7 +485,7 @@ async function requireNativeBinding() {
|
|
|
443
485
|
if (binding?.analyzeClasses) return binding;
|
|
444
486
|
const runtimeDir = resolveRuntimeDir(
|
|
445
487
|
typeof __dirname === "string" ? __dirname : void 0,
|
|
446
|
-
|
|
488
|
+
__importMetaUrl
|
|
447
489
|
);
|
|
448
490
|
const candidates = resolveNativeBindingCandidates({
|
|
449
491
|
runtimeDir,
|
|
@@ -476,6 +518,7 @@ async function requireNativeCssCompiler() {
|
|
|
476
518
|
|
|
477
519
|
// packages/domain/analyzer/src/schemas.ts
|
|
478
520
|
init_src();
|
|
521
|
+
var import_zod = require("zod");
|
|
479
522
|
var formatIssuePath2 = (path2) => path2.length > 0 ? path2.map(
|
|
480
523
|
(segment) => typeof segment === "symbol" ? segment.description ?? segment.toString() : String(segment)
|
|
481
524
|
).join(".") : "<root>";
|
|
@@ -499,76 +542,76 @@ var parseWithSchema = (schema, data, label) => {
|
|
|
499
542
|
parsed.error
|
|
500
543
|
);
|
|
501
544
|
};
|
|
502
|
-
var CountSchema =
|
|
503
|
-
|
|
504
|
-
name:
|
|
545
|
+
var CountSchema = import_zod.z.number().int().min(0);
|
|
546
|
+
var ClassUsageSchema = import_zod.z.object({
|
|
547
|
+
name: import_zod.z.string(),
|
|
505
548
|
count: CountSchema,
|
|
506
|
-
isUnused:
|
|
507
|
-
isConflict:
|
|
549
|
+
isUnused: import_zod.z.boolean().optional(),
|
|
550
|
+
isConflict: import_zod.z.boolean().optional()
|
|
508
551
|
});
|
|
509
|
-
|
|
510
|
-
className:
|
|
511
|
-
variants:
|
|
512
|
-
classes:
|
|
513
|
-
message:
|
|
552
|
+
var ClassConflictSchema = import_zod.z.object({
|
|
553
|
+
className: import_zod.z.string(),
|
|
554
|
+
variants: import_zod.z.array(import_zod.z.string()),
|
|
555
|
+
classes: import_zod.z.array(import_zod.z.string()),
|
|
556
|
+
message: import_zod.z.string()
|
|
514
557
|
});
|
|
515
|
-
var ClassCountSchema =
|
|
516
|
-
name:
|
|
558
|
+
var ClassCountSchema = import_zod.z.object({
|
|
559
|
+
name: import_zod.z.string(),
|
|
517
560
|
count: CountSchema
|
|
518
561
|
});
|
|
519
|
-
|
|
520
|
-
root:
|
|
562
|
+
var NativeReportSchema = import_zod.z.object({
|
|
563
|
+
root: import_zod.z.string(),
|
|
521
564
|
totalFiles: CountSchema,
|
|
522
565
|
uniqueClassCount: CountSchema,
|
|
523
566
|
totalClassOccurrences: CountSchema,
|
|
524
|
-
topClasses:
|
|
525
|
-
duplicateCandidates:
|
|
526
|
-
safelist:
|
|
567
|
+
topClasses: import_zod.z.array(ClassCountSchema),
|
|
568
|
+
duplicateCandidates: import_zod.z.array(ClassCountSchema),
|
|
569
|
+
safelist: import_zod.z.array(import_zod.z.string())
|
|
527
570
|
});
|
|
528
|
-
var NativeCssCompileResultSchema =
|
|
529
|
-
css:
|
|
530
|
-
resolvedClasses:
|
|
531
|
-
unknownClasses:
|
|
571
|
+
var NativeCssCompileResultSchema = import_zod.z.object({
|
|
572
|
+
css: import_zod.z.string(),
|
|
573
|
+
resolvedClasses: import_zod.z.array(import_zod.z.string()),
|
|
574
|
+
unknownClasses: import_zod.z.array(import_zod.z.string()),
|
|
532
575
|
sizeBytes: CountSchema
|
|
533
576
|
});
|
|
534
|
-
var AnalyzerClassStatsSchema =
|
|
535
|
-
top:
|
|
577
|
+
var AnalyzerClassStatsSchema = import_zod.z.object({
|
|
578
|
+
top: import_zod.z.number({
|
|
536
579
|
error: "analyzeWorkspace options.classStats.top must be a number when provided."
|
|
537
580
|
}).finite().optional(),
|
|
538
|
-
frequentThreshold:
|
|
581
|
+
frequentThreshold: import_zod.z.number({
|
|
539
582
|
error: "analyzeWorkspace options.classStats.frequentThreshold must be a number when provided."
|
|
540
583
|
}).finite().optional()
|
|
541
584
|
});
|
|
542
|
-
var AnalyzerSemanticOptionsSchema =
|
|
543
|
-
tailwindConfigPath:
|
|
585
|
+
var AnalyzerSemanticOptionsSchema = import_zod.z.object({
|
|
586
|
+
tailwindConfigPath: import_zod.z.string({
|
|
544
587
|
error: "analyzeWorkspace options.semantic.tailwindConfigPath must be a non-empty string when provided."
|
|
545
588
|
}).min(
|
|
546
589
|
1,
|
|
547
590
|
"analyzeWorkspace options.semantic.tailwindConfigPath must be a non-empty string when provided."
|
|
548
591
|
).optional()
|
|
549
592
|
});
|
|
550
|
-
|
|
551
|
-
scanner:
|
|
593
|
+
var AnalyzerOptionsSchema = import_zod.z.object({
|
|
594
|
+
scanner: import_zod.z.custom(
|
|
552
595
|
(value) => isPlainObject(value),
|
|
553
596
|
"analyzeWorkspace options.scanner must be an object when provided."
|
|
554
597
|
).optional(),
|
|
555
598
|
classStats: AnalyzerClassStatsSchema.optional(),
|
|
556
|
-
semantic:
|
|
557
|
-
|
|
599
|
+
semantic: import_zod.z.union([
|
|
600
|
+
import_zod.z.boolean({
|
|
558
601
|
error: "analyzeWorkspace options.semantic must be a boolean or an object when provided."
|
|
559
602
|
}),
|
|
560
603
|
AnalyzerSemanticOptionsSchema
|
|
561
604
|
]).optional(),
|
|
562
|
-
includeClass:
|
|
605
|
+
includeClass: import_zod.z.custom(
|
|
563
606
|
(value) => typeof value === "function",
|
|
564
607
|
"analyzeWorkspace options.includeClass must be a function when provided."
|
|
565
608
|
).optional()
|
|
566
609
|
});
|
|
567
|
-
var ClassToCssOptionsSchema =
|
|
568
|
-
prefix:
|
|
610
|
+
var ClassToCssOptionsSchema = import_zod.z.object({
|
|
611
|
+
prefix: import_zod.z.union([import_zod.z.string(), import_zod.z.null()], {
|
|
569
612
|
error: "classToCss options.prefix must be a string or null when provided."
|
|
570
613
|
}).optional(),
|
|
571
|
-
strict:
|
|
614
|
+
strict: import_zod.z.boolean({
|
|
572
615
|
error: "classToCss options.strict must be a boolean when provided."
|
|
573
616
|
}).optional()
|
|
574
617
|
});
|
|
@@ -912,18 +955,19 @@ function injectAnimationCss(registry = defaultRegistry, options = {}) {
|
|
|
912
955
|
styleEl.textContent = registry.extractCss();
|
|
913
956
|
}
|
|
914
957
|
var animations = createAnimationPresets(defaultRegistry);
|
|
915
|
-
|
|
916
|
-
exports
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
958
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
959
|
+
0 && (module.exports = {
|
|
960
|
+
AnimationRegistry,
|
|
961
|
+
animate,
|
|
962
|
+
animations,
|
|
963
|
+
compileAnimation,
|
|
964
|
+
compileKeyframes,
|
|
965
|
+
createAnimationRegistry,
|
|
966
|
+
extractAnimationCss,
|
|
967
|
+
getDefaultAnimationRegistry,
|
|
968
|
+
initAnimate,
|
|
969
|
+
injectAnimationCss,
|
|
970
|
+
keyframes,
|
|
971
|
+
resetAnimationRegistry
|
|
972
|
+
});
|
|
929
973
|
//# sourceMappingURL=animate.js.map
|