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.
Files changed (123) hide show
  1. package/dist/analyzer.js +213 -161
  2. package/dist/analyzer.js.map +1 -1
  3. package/dist/analyzer.mjs +121 -83
  4. package/dist/analyzer.mjs.map +1 -1
  5. package/dist/animate.js +131 -87
  6. package/dist/animate.js.map +1 -1
  7. package/dist/animate.mjs +31 -15
  8. package/dist/animate.mjs.map +1 -1
  9. package/dist/atomic.js +107 -67
  10. package/dist/atomic.js.map +1 -1
  11. package/dist/atomic.mjs +47 -14
  12. package/dist/atomic.mjs.map +1 -1
  13. package/dist/cli.js +601 -428
  14. package/dist/cli.js.map +1 -1
  15. package/dist/cli.mjs +504 -313
  16. package/dist/cli.mjs.map +1 -1
  17. package/dist/compiler.js +833 -508
  18. package/dist/compiler.js.map +1 -1
  19. package/dist/compiler.mjs +298 -30
  20. package/dist/compiler.mjs.map +1 -1
  21. package/dist/dashboard.js +72 -41
  22. package/dist/dashboard.js.map +1 -1
  23. package/dist/dashboard.mjs +12 -6
  24. package/dist/dashboard.mjs.map +1 -1
  25. package/dist/devtools.js +335 -289
  26. package/dist/devtools.js.map +1 -1
  27. package/dist/devtools.mjs +28 -11
  28. package/dist/devtools.mjs.map +1 -1
  29. package/dist/engine.js +719 -506
  30. package/dist/engine.js.map +1 -1
  31. package/dist/engine.mjs +520 -318
  32. package/dist/engine.mjs.map +1 -1
  33. package/dist/index.d.mts +145 -319
  34. package/dist/index.d.ts +145 -319
  35. package/dist/index.js +1337 -7442
  36. package/dist/index.js.map +1 -1
  37. package/dist/index.mjs +1275 -7386
  38. package/dist/index.mjs.map +1 -1
  39. package/dist/next.js +327 -242
  40. package/dist/next.js.map +1 -1
  41. package/dist/next.mjs +272 -184
  42. package/dist/next.mjs.map +1 -1
  43. package/dist/plugin-api.js +94 -49
  44. package/dist/plugin-api.js.map +1 -1
  45. package/dist/plugin-api.mjs +26 -6
  46. package/dist/plugin-api.mjs.map +1 -1
  47. package/dist/plugin-registry.js +68 -40
  48. package/dist/plugin-registry.js.map +1 -1
  49. package/dist/plugin-registry.mjs +14 -10
  50. package/dist/plugin-registry.mjs.map +1 -1
  51. package/dist/plugin.js +102 -53
  52. package/dist/plugin.js.map +1 -1
  53. package/dist/plugin.mjs +30 -6
  54. package/dist/plugin.mjs.map +1 -1
  55. package/dist/preset.js +48 -15
  56. package/dist/preset.js.map +1 -1
  57. package/dist/preset.mjs +13 -5
  58. package/dist/preset.mjs.map +1 -1
  59. package/dist/rspack.js +108 -53
  60. package/dist/rspack.js.map +1 -1
  61. package/dist/rspack.mjs +50 -18
  62. package/dist/rspack.mjs.map +1 -1
  63. package/dist/runtime-css.js +63 -24
  64. package/dist/runtime-css.js.map +1 -1
  65. package/dist/runtime-css.mjs +15 -7
  66. package/dist/runtime-css.mjs.map +1 -1
  67. package/dist/runtime.js +98 -44
  68. package/dist/runtime.js.map +1 -1
  69. package/dist/runtime.mjs +31 -8
  70. package/dist/runtime.mjs.map +1 -1
  71. package/dist/scanner.js +164 -120
  72. package/dist/scanner.js.map +1 -1
  73. package/dist/scanner.mjs +70 -40
  74. package/dist/scanner.mjs.map +1 -1
  75. package/dist/shared.d.mts +0 -12
  76. package/dist/shared.d.ts +0 -12
  77. package/dist/shared.js +481 -299
  78. package/dist/shared.js.map +1 -1
  79. package/dist/shared.mjs +304 -133
  80. package/dist/shared.mjs.map +1 -1
  81. package/dist/storybook-addon.js +40 -10
  82. package/dist/storybook-addon.js.map +1 -1
  83. package/dist/storybook-addon.mjs +8 -3
  84. package/dist/storybook-addon.mjs.map +1 -1
  85. package/dist/svelte.js +95 -64
  86. package/dist/svelte.js.map +1 -1
  87. package/dist/svelte.mjs +37 -14
  88. package/dist/svelte.mjs.map +1 -1
  89. package/dist/syntax.js +69 -37
  90. package/dist/syntax.js.map +1 -1
  91. package/dist/syntax.mjs +8 -7
  92. package/dist/syntax.mjs.map +1 -1
  93. package/dist/testing.js +56 -18
  94. package/dist/testing.js.map +1 -1
  95. package/dist/testing.mjs +16 -3
  96. package/dist/testing.mjs.map +1 -1
  97. package/dist/theme.js +133 -74
  98. package/dist/theme.js.map +1 -1
  99. package/dist/theme.mjs +45 -14
  100. package/dist/theme.mjs.map +1 -1
  101. package/dist/turbopackLoader.js +156 -115
  102. package/dist/turbopackLoader.js.map +1 -1
  103. package/dist/turbopackLoader.mjs +135 -82
  104. package/dist/turbopackLoader.mjs.map +1 -1
  105. package/dist/tw.js +584 -423
  106. package/dist/tw.js.map +1 -1
  107. package/dist/tw.mjs +498 -311
  108. package/dist/tw.mjs.map +1 -1
  109. package/dist/vite.js +599 -450
  110. package/dist/vite.js.map +1 -1
  111. package/dist/vite.mjs +484 -332
  112. package/dist/vite.mjs.map +1 -1
  113. package/dist/vue.js +102 -70
  114. package/dist/vue.js.map +1 -1
  115. package/dist/vue.mjs +39 -15
  116. package/dist/vue.mjs.map +1 -1
  117. package/dist/webpackLoader.js +112 -77
  118. package/dist/webpackLoader.js.map +1 -1
  119. package/dist/webpackLoader.mjs +52 -18
  120. package/dist/webpackLoader.mjs.map +1 -1
  121. package/native/tailwind-styled-native.linux-x64-gnu.node +0 -0
  122. package/native/tailwind-styled-native.node +0 -0
  123. package/package.json +3 -1
package/dist/animate.js CHANGED
@@ -1,23 +1,38 @@
1
- 'use strict';
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 = path__default.default.resolve(runtimeDir, candidate);
54
+ const candidatePath = import_node_path.default.resolve(runtimeDir, candidate);
40
55
  try {
41
- if (!fs__default.default.existsSync(candidatePath) && !fs__default.default.existsSync(candidatePath + ".node")) {
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 (fs__default.default.existsSync(runtimeDir)) {
88
+ if (import_node_fs.default.existsSync(runtimeDir)) {
74
89
  try {
75
- for (const entry of fs__default.default.readdirSync(runtimeDir)) {
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(path__default.default.resolve(runtimeDir, `${bin}.node`));
85
- candidates.push(path__default.default.resolve(runtimeDir, `${bin}.${napiPlatform}.node`));
86
- candidates.push(path__default.default.resolve(runtimeDir, "..", "native", `${bin}.node`));
87
- candidates.push(path__default.default.resolve(runtimeDir, "..", "native", `${bin}.${napiPlatform}.node`));
88
- candidates.push(path__default.default.resolve(process.cwd(), "native", `${bin}.node`));
89
- candidates.push(path__default.default.resolve(process.cwd(), "native", `${bin}.${napiPlatform}.node`));
90
- candidates.push(path__default.default.resolve(runtimeDir, "..", "..", "..", "..", "native", `${bin}.node`));
91
- candidates.push(path__default.default.resolve(runtimeDir, "..", "..", "..", "..", "native", `${bin}.${napiPlatform}.node`));
92
- candidates.push(path__default.default.resolve(runtimeDir, "..", "..", "..", "native", `${bin}.node`));
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 path__default.default.resolve(dir);
112
+ if (dir) return import_node_path.default.resolve(dir);
98
113
  try {
99
- return path__default.default.dirname(url.fileURLToPath(importMetaUrl));
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 = module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('animate.js', document.baseURI).href)));
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
- (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('animate.js', document.baseURI).href))
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(module) {
258
- const candidate = module;
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 = (module) => {
396
- const candidate = module;
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
- (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('animate.js', document.baseURI).href))
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
- (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('animate.js', document.baseURI).href))
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 = zod.z.number().int().min(0);
503
- zod.z.object({
504
- name: zod.z.string(),
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: zod.z.boolean().optional(),
507
- isConflict: zod.z.boolean().optional()
549
+ isUnused: import_zod.z.boolean().optional(),
550
+ isConflict: import_zod.z.boolean().optional()
508
551
  });
509
- zod.z.object({
510
- className: zod.z.string(),
511
- variants: zod.z.array(zod.z.string()),
512
- classes: zod.z.array(zod.z.string()),
513
- message: zod.z.string()
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 = zod.z.object({
516
- name: zod.z.string(),
558
+ var ClassCountSchema = import_zod.z.object({
559
+ name: import_zod.z.string(),
517
560
  count: CountSchema
518
561
  });
519
- zod.z.object({
520
- root: zod.z.string(),
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: zod.z.array(ClassCountSchema),
525
- duplicateCandidates: zod.z.array(ClassCountSchema),
526
- safelist: zod.z.array(zod.z.string())
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 = zod.z.object({
529
- css: zod.z.string(),
530
- resolvedClasses: zod.z.array(zod.z.string()),
531
- unknownClasses: zod.z.array(zod.z.string()),
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 = zod.z.object({
535
- top: zod.z.number({
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: zod.z.number({
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 = zod.z.object({
543
- tailwindConfigPath: zod.z.string({
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
- zod.z.object({
551
- scanner: zod.z.custom(
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: zod.z.union([
557
- zod.z.boolean({
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: zod.z.custom(
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 = zod.z.object({
568
- prefix: zod.z.union([zod.z.string(), zod.z.null()], {
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: zod.z.boolean({
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.AnimationRegistry = createAnimationRegistry;
917
- exports.animate = animate;
918
- exports.animations = animations;
919
- exports.compileAnimation = compileAnimation;
920
- exports.compileKeyframes = compileKeyframes;
921
- exports.createAnimationRegistry = createAnimationRegistry;
922
- exports.extractAnimationCss = extractAnimationCss;
923
- exports.getDefaultAnimationRegistry = getDefaultAnimationRegistry;
924
- exports.initAnimate = initAnimate2;
925
- exports.injectAnimationCss = injectAnimationCss;
926
- exports.keyframes = keyframes;
927
- exports.resetAnimationRegistry = resetAnimationRegistry;
928
- //# sourceMappingURL=animate.js.map
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