tailwind-styled-v4 5.1.16 → 5.1.18

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 (59) hide show
  1. package/dist/atomic.js +16 -4
  2. package/dist/atomic.js.map +1 -1
  3. package/dist/atomic.mjs +13 -2
  4. package/dist/atomic.mjs.map +1 -1
  5. package/dist/cli.js +80 -68
  6. package/dist/cli.js.map +1 -1
  7. package/dist/cli.mjs +77 -66
  8. package/dist/cli.mjs.map +1 -1
  9. package/dist/compiler.d.mts +84 -4
  10. package/dist/compiler.d.ts +84 -4
  11. package/dist/compiler.js +245 -15
  12. package/dist/compiler.js.map +1 -1
  13. package/dist/compiler.mjs +240 -14
  14. package/dist/compiler.mjs.map +1 -1
  15. package/dist/engine.js +209 -167
  16. package/dist/engine.js.map +1 -1
  17. package/dist/engine.mjs +200 -159
  18. package/dist/engine.mjs.map +1 -1
  19. package/dist/index.browser.mjs +0 -3
  20. package/dist/index.browser.mjs.map +1 -1
  21. package/dist/index.js +0 -3
  22. package/dist/index.js.map +1 -1
  23. package/dist/index.mjs +0 -3
  24. package/dist/index.mjs.map +1 -1
  25. package/dist/next.d.mts +16 -0
  26. package/dist/next.d.ts +16 -0
  27. package/dist/next.js +458 -158
  28. package/dist/next.js.map +1 -1
  29. package/dist/next.mjs +454 -154
  30. package/dist/next.mjs.map +1 -1
  31. package/dist/runtime.js +0 -3
  32. package/dist/runtime.js.map +1 -1
  33. package/dist/runtime.mjs +0 -3
  34. package/dist/runtime.mjs.map +1 -1
  35. package/dist/shared.js +106 -64
  36. package/dist/shared.js.map +1 -1
  37. package/dist/shared.mjs +101 -60
  38. package/dist/shared.mjs.map +1 -1
  39. package/dist/theme.js +0 -3
  40. package/dist/theme.js.map +1 -1
  41. package/dist/theme.mjs +0 -3
  42. package/dist/theme.mjs.map +1 -1
  43. package/dist/turbopackLoader.js +94 -52
  44. package/dist/turbopackLoader.js.map +1 -1
  45. package/dist/turbopackLoader.mjs +92 -51
  46. package/dist/turbopackLoader.mjs.map +1 -1
  47. package/dist/tw.js +80 -68
  48. package/dist/tw.js.map +1 -1
  49. package/dist/tw.mjs +77 -66
  50. package/dist/tw.mjs.map +1 -1
  51. package/dist/vite.js +172 -130
  52. package/dist/vite.js.map +1 -1
  53. package/dist/vite.mjs +166 -125
  54. package/dist/vite.mjs.map +1 -1
  55. package/dist/webpackLoader.js +28 -10
  56. package/dist/webpackLoader.js.map +1 -1
  57. package/dist/webpackLoader.mjs +26 -9
  58. package/dist/webpackLoader.mjs.map +1 -1
  59. package/package.json +1 -1
package/dist/cli.mjs CHANGED
@@ -997,8 +997,8 @@ var require_command = __commonJS({
997
997
  init_esm_shims();
998
998
  var EventEmitter = __require("events").EventEmitter;
999
999
  var childProcess = __require("child_process");
1000
- var path31 = __require("path");
1001
- var fs16 = __require("fs");
1000
+ var path32 = __require("path");
1001
+ var fs17 = __require("fs");
1002
1002
  var process2 = __require("process");
1003
1003
  var { Argument: Argument2, humanReadableArgName } = require_argument();
1004
1004
  var { CommanderError: CommanderError2 } = require_error();
@@ -1930,11 +1930,11 @@ Expecting one of '${allowedValues.join("', '")}'`);
1930
1930
  let launchWithNode = false;
1931
1931
  const sourceExt = [".js", ".ts", ".tsx", ".mjs", ".cjs"];
1932
1932
  function findFile(baseDir, baseName) {
1933
- const localBin = path31.resolve(baseDir, baseName);
1934
- if (fs16.existsSync(localBin)) return localBin;
1935
- if (sourceExt.includes(path31.extname(baseName))) return void 0;
1933
+ const localBin = path32.resolve(baseDir, baseName);
1934
+ if (fs17.existsSync(localBin)) return localBin;
1935
+ if (sourceExt.includes(path32.extname(baseName))) return void 0;
1936
1936
  const foundExt = sourceExt.find(
1937
- (ext) => fs16.existsSync(`${localBin}${ext}`)
1937
+ (ext) => fs17.existsSync(`${localBin}${ext}`)
1938
1938
  );
1939
1939
  if (foundExt) return `${localBin}${foundExt}`;
1940
1940
  return void 0;
@@ -1946,21 +1946,21 @@ Expecting one of '${allowedValues.join("', '")}'`);
1946
1946
  if (this._scriptPath) {
1947
1947
  let resolvedScriptPath;
1948
1948
  try {
1949
- resolvedScriptPath = fs16.realpathSync(this._scriptPath);
1949
+ resolvedScriptPath = fs17.realpathSync(this._scriptPath);
1950
1950
  } catch (err) {
1951
1951
  resolvedScriptPath = this._scriptPath;
1952
1952
  }
1953
- executableDir = path31.resolve(
1954
- path31.dirname(resolvedScriptPath),
1953
+ executableDir = path32.resolve(
1954
+ path32.dirname(resolvedScriptPath),
1955
1955
  executableDir
1956
1956
  );
1957
1957
  }
1958
1958
  if (executableDir) {
1959
1959
  let localFile = findFile(executableDir, executableFile);
1960
1960
  if (!localFile && !subcommand._executableFile && this._scriptPath) {
1961
- const legacyName = path31.basename(
1961
+ const legacyName = path32.basename(
1962
1962
  this._scriptPath,
1963
- path31.extname(this._scriptPath)
1963
+ path32.extname(this._scriptPath)
1964
1964
  );
1965
1965
  if (legacyName !== this._name) {
1966
1966
  localFile = findFile(
@@ -1971,7 +1971,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
1971
1971
  }
1972
1972
  executableFile = localFile || executableFile;
1973
1973
  }
1974
- launchWithNode = sourceExt.includes(path31.extname(executableFile));
1974
+ launchWithNode = sourceExt.includes(path32.extname(executableFile));
1975
1975
  let proc;
1976
1976
  if (process2.platform !== "win32") {
1977
1977
  if (launchWithNode) {
@@ -2811,7 +2811,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
2811
2811
  * @return {Command}
2812
2812
  */
2813
2813
  nameFromFilename(filename) {
2814
- this._name = path31.basename(filename, path31.extname(filename));
2814
+ this._name = path32.basename(filename, path32.extname(filename));
2815
2815
  return this;
2816
2816
  }
2817
2817
  /**
@@ -2825,9 +2825,9 @@ Expecting one of '${allowedValues.join("', '")}'`);
2825
2825
  * @param {string} [path]
2826
2826
  * @return {(string|null|Command)}
2827
2827
  */
2828
- executableDir(path32) {
2829
- if (path32 === void 0) return this._executableDir;
2830
- this._executableDir = path32;
2828
+ executableDir(path33) {
2829
+ if (path33 === void 0) return this._executableDir;
2830
+ this._executableDir = path33;
2831
2831
  return this;
2832
2832
  }
2833
2833
  /**
@@ -3345,9 +3345,9 @@ function createDebugLogger(namespace, label) {
3345
3345
  }
3346
3346
  };
3347
3347
  }
3348
- function formatIssuePath(path31) {
3349
- if (!path31 || path31.length === 0) return "(root)";
3350
- return path31.map(
3348
+ function formatIssuePath(path32) {
3349
+ if (!path32 || path32.length === 0) return "(root)";
3350
+ return path32.map(
3351
3351
  (segment) => typeof segment === "symbol" ? segment.description ?? segment.toString() : String(segment)
3352
3352
  ).join(".");
3353
3353
  }
@@ -3463,8 +3463,8 @@ var init_src = __esm({
3463
3463
  /** Buat TwError dari ZodError — dukung shape Zod v3 (`errors`) dan v4 (`issues`). */
3464
3464
  static fromZod(err) {
3465
3465
  const first = err.issues?.[0] ?? err.errors?.[0];
3466
- const path31 = formatIssuePath(first?.path);
3467
- const message = first ? `${path31}: ${first.message}` : "Schema validation failed";
3466
+ const path32 = formatIssuePath(first?.path);
3467
+ const message = first ? `${path32}: ${first.message}` : "Schema validation failed";
3468
3468
  return new _TwError("validation", "SCHEMA_VALIDATION_FAILED", message, err);
3469
3469
  }
3470
3470
  static wrap(source, code, err) {
@@ -4020,12 +4020,12 @@ var init_schemas = __esm({
4020
4020
  "use strict";
4021
4021
  init_esm_shims();
4022
4022
  init_src();
4023
- formatIssuePath2 = (path31) => path31.length > 0 ? path31.map(
4023
+ formatIssuePath2 = (path32) => path32.length > 0 ? path32.map(
4024
4024
  (segment) => typeof segment === "symbol" ? segment.description ?? segment.toString() : String(segment)
4025
4025
  ).join(".") : "<root>";
4026
4026
  formatIssues = (error) => error.issues.map((issue) => {
4027
- const path31 = formatIssuePath2(issue.path);
4028
- return `${path31}: ${issue.message}`;
4027
+ const path32 = formatIssuePath2(issue.path);
4028
+ return `${path32}: ${issue.message}`;
4029
4029
  }).join("; ");
4030
4030
  parseWithSchema = (schema, data, label) => {
4031
4031
  const parsed = schema.safeParse(data);
@@ -4630,7 +4630,7 @@ var init_schemas2 = __esm({
4630
4630
  "use strict";
4631
4631
  init_esm_shims();
4632
4632
  init_src();
4633
- formatIssuePath3 = (path31) => path31.length > 0 ? path31.map(
4633
+ formatIssuePath3 = (path32) => path32.length > 0 ? path32.map(
4634
4634
  (segment) => typeof segment === "symbol" ? segment.description ?? segment.toString() : String(segment)
4635
4635
  ).join(".") : "<root>";
4636
4636
  isPlainObject = (value) => {
@@ -4639,8 +4639,8 @@ var init_schemas2 = __esm({
4639
4639
  return proto === Object.prototype || proto === null;
4640
4640
  };
4641
4641
  formatIssues2 = (error) => error.issues.map((issue) => {
4642
- const path31 = formatIssuePath3(issue.path);
4643
- return `${path31}: ${issue.message}`;
4642
+ const path32 = formatIssuePath3(issue.path);
4643
+ return `${path32}: ${issue.message}`;
4644
4644
  }).join("; ");
4645
4645
  parseWithSchema2 = (schema, data, label) => {
4646
4646
  const parsed = schema.safeParse(data);
@@ -6261,7 +6261,7 @@ var init_nativeBridge = __esm({
6261
6261
  "use strict";
6262
6262
  init_esm_shims();
6263
6263
  init_src();
6264
- _loadNative = (path31) => __require(path31);
6264
+ _loadNative = (path32) => __require(path32);
6265
6265
  log3 = (...args) => {
6266
6266
  if (process.env.DEBUG?.includes("compiler:native")) {
6267
6267
  console.log("[compiler:native]", ...args);
@@ -6403,9 +6403,19 @@ var init_watch = __esm({
6403
6403
  }
6404
6404
  });
6405
6405
 
6406
- // packages/domain/compiler/src/index.ts
6406
+ // packages/domain/compiler/src/routeGraph.ts
6407
6407
  import fs12 from "fs";
6408
6408
  import path25 from "path";
6409
+ var init_routeGraph = __esm({
6410
+ "packages/domain/compiler/src/routeGraph.ts"() {
6411
+ "use strict";
6412
+ init_esm_shims();
6413
+ }
6414
+ });
6415
+
6416
+ // packages/domain/compiler/src/index.ts
6417
+ import fs13 from "fs";
6418
+ import path26 from "path";
6409
6419
  import { createRequire as createRequire4 } from "module";
6410
6420
  var _require3, compileCssFromClasses;
6411
6421
  var init_src4 = __esm({
@@ -6419,6 +6429,7 @@ var init_src4 = __esm({
6419
6429
  init_cache();
6420
6430
  init_redis();
6421
6431
  init_watch();
6432
+ init_routeGraph();
6422
6433
  _require3 = createRequire4(
6423
6434
  typeof __require !== "undefined" ? typeof __filename !== "undefined" ? `file://${__filename}` : "file://unknown" : import.meta.url
6424
6435
  );
@@ -9101,7 +9112,7 @@ init_errors();
9101
9112
  init_fs();
9102
9113
  init_json();
9103
9114
  init_src4();
9104
- import path26 from "path";
9115
+ import path27 from "path";
9105
9116
  import { pathToFileURL as pathToFileURL2 } from "url";
9106
9117
  var DEFAULT_TAILWIND_CSS2 = '@import "tailwindcss";\n';
9107
9118
  var DEFAULT_TW_CONFIG = `${JSON.stringify(
@@ -9128,8 +9139,8 @@ async function validateThemeConfig(cwd2) {
9128
9139
  const twConfigFiles = ["tailwind.config.ts", "tailwind.config.js", "tailwind.config.mjs"];
9129
9140
  let configPath = null;
9130
9141
  for (const file of twConfigFiles) {
9131
- if (await pathExists2(path26.join(cwd2, file))) {
9132
- configPath = path26.join(cwd2, file);
9142
+ if (await pathExists2(path27.join(cwd2, file))) {
9143
+ configPath = path27.join(cwd2, file);
9133
9144
  break;
9134
9145
  }
9135
9146
  }
@@ -9220,7 +9231,7 @@ function resolveCliEntry(scriptPath) {
9220
9231
  async function hasTailwindCssImport(cwd2) {
9221
9232
  const cssFiles = ["src/app/globals.css", "src/index.css", "src/style.css", "app/globals.css"];
9222
9233
  for (const file of cssFiles) {
9223
- const raw = await readFileSafe(path26.join(cwd2, file));
9234
+ const raw = await readFileSafe(path27.join(cwd2, file));
9224
9235
  if (raw?.includes("tailwindcss")) return true;
9225
9236
  }
9226
9237
  return false;
@@ -9236,7 +9247,7 @@ async function hasSafelistSource(cwd2) {
9236
9247
  "app/globals.css"
9237
9248
  ];
9238
9249
  for (const file of cssFiles) {
9239
- const raw = await readFileSafe(path26.join(cwd2, file));
9250
+ const raw = await readFileSafe(path27.join(cwd2, file));
9240
9251
  if (raw === null) continue;
9241
9252
  if (raw.includes("tw-classes")) return { found: true, cssFile: file };
9242
9253
  if (raw.includes("tailwindcss")) return { found: false, cssFile: file };
@@ -9244,8 +9255,8 @@ async function hasSafelistSource(cwd2) {
9244
9255
  return { found: false, cssFile: null };
9245
9256
  }
9246
9257
  async function applyTailwindInit(cwd2) {
9247
- await ensureFileSafe(path26.join(cwd2, "src", "tailwind.css"), DEFAULT_TAILWIND_CSS2);
9248
- await ensureFileSafe(path26.join(cwd2, "tailwind-styled.config.json"), DEFAULT_TW_CONFIG);
9258
+ await ensureFileSafe(path27.join(cwd2, "src", "tailwind.css"), DEFAULT_TAILWIND_CSS2);
9259
+ await ensureFileSafe(path27.join(cwd2, "tailwind-styled.config.json"), DEFAULT_TW_CONFIG);
9249
9260
  }
9250
9261
  function check(results, id, label, pass, message, fix) {
9251
9262
  results.push({ id, label, pass, message, fix });
@@ -9267,7 +9278,7 @@ async function runPreflightCli(rawArgs) {
9267
9278
  node.major >= 20 ? `Node ${node.full} OK` : `Node ${node.full} - requires >=20. Download: https://nodejs.org`,
9268
9279
  node.major < 20 ? "Install Node.js 20 LTS or newer from https://nodejs.org" : void 0
9269
9280
  );
9270
- const pkg = await readJsonSafe(path26.join(cwd2, "package.json"));
9281
+ const pkg = await readJsonSafe(path27.join(cwd2, "package.json"));
9271
9282
  check(
9272
9283
  results,
9273
9284
  "package-json",
@@ -9301,7 +9312,7 @@ async function runPreflightCli(rawArgs) {
9301
9312
  }
9302
9313
  const twConfigFiles = ["tailwind.config.ts", "tailwind.config.js", "tailwind.config.mjs"];
9303
9314
  const twConfigChecks = await Promise.all(
9304
- twConfigFiles.map(async (file) => ({ file, exists: await pathExists2(path26.join(cwd2, file)) }))
9315
+ twConfigFiles.map(async (file) => ({ file, exists: await pathExists2(path27.join(cwd2, file)) }))
9305
9316
  );
9306
9317
  const foundTwConfig = twConfigChecks.find((item) => item.exists)?.file ?? null;
9307
9318
  const hasCssConfig = await hasTailwindCssImport(cwd2);
@@ -9313,7 +9324,7 @@ async function runPreflightCli(rawArgs) {
9313
9324
  foundTwConfig ? `${foundTwConfig} found OK` : hasCssConfig ? "@import tailwindcss found in CSS OK" : "No Tailwind config found - run: tw init",
9314
9325
  "tw init"
9315
9326
  );
9316
- const oldConfig = await readJsonSafe(path26.join(cwd2, "tailwind.config.js")) ?? await readJsonSafe(path26.join(cwd2, "tailwind.config.ts"));
9327
+ const oldConfig = await readJsonSafe(path27.join(cwd2, "tailwind.config.js")) ?? await readJsonSafe(path27.join(cwd2, "tailwind.config.ts"));
9317
9328
  if (oldConfig) {
9318
9329
  const hasOldJit = oldConfig.mode === "jit";
9319
9330
  const hasOldPurge = "purge" in oldConfig;
@@ -9337,7 +9348,7 @@ async function runPreflightCli(rawArgs) {
9337
9348
  validation.message
9338
9349
  );
9339
9350
  }
9340
- const hasTsConfig = await pathExists2(path26.join(cwd2, "tsconfig.json"));
9351
+ const hasTsConfig = await pathExists2(path27.join(cwd2, "tsconfig.json"));
9341
9352
  check(
9342
9353
  results,
9343
9354
  "typescript",
@@ -9699,7 +9710,7 @@ init_esm_shims();
9699
9710
  init_errors();
9700
9711
  init_fs();
9701
9712
  init_json();
9702
- import path27 from "path";
9713
+ import path28 from "path";
9703
9714
  import { parseArgs as parseNodeArgs11 } from "util";
9704
9715
  var storybookCommand = {
9705
9716
  name: "storybook",
@@ -9738,7 +9749,7 @@ var storybookCommand = {
9738
9749
  context.output.writeText(
9739
9750
  `[tw storybook] Tip: use --variants='{"size":["sm","lg"]}' to enumerate variant combinations`
9740
9751
  );
9741
- const localBin = path27.join(
9752
+ const localBin = path28.join(
9742
9753
  process.cwd(),
9743
9754
  "node_modules",
9744
9755
  ".bin",
@@ -10925,10 +10936,10 @@ async function traceClass(className, options) {
10925
10936
  init_esm_shims();
10926
10937
  init_internal();
10927
10938
  init_src2();
10928
- import fs13 from "fs";
10929
- import path28 from "path";
10939
+ import fs14 from "fs";
10940
+ import path29 from "path";
10930
10941
  function toRelativePath(root, value) {
10931
- const relative = path28.relative(root, value);
10942
+ const relative = path29.relative(root, value);
10932
10943
  return relative.length > 0 ? relative : ".";
10933
10944
  }
10934
10945
  function uniqueSorted(values) {
@@ -10997,7 +11008,7 @@ function tryCompileClasses(classes) {
10997
11008
  }
10998
11009
  }
10999
11010
  function traceSingleFile(filePath, root) {
11000
- const source = fs13.readFileSync(filePath, "utf8");
11011
+ const source = fs14.readFileSync(filePath, "utf8");
11001
11012
  const classes = uniqueSorted(scanSource(source));
11002
11013
  const imports = extractImports(source);
11003
11014
  const compiled = tryCompileClasses(classes);
@@ -11028,7 +11039,7 @@ function traceDirectory(targetDir, root) {
11028
11039
  const imports = [];
11029
11040
  const importKeys = /* @__PURE__ */ new Set();
11030
11041
  const files = scanResult.files.filter((entry) => isScannableFile2(entry.file, DEFAULT_EXTENSIONS)).map((entry) => {
11031
- const source = fs13.readFileSync(entry.file, "utf8");
11042
+ const source = fs14.readFileSync(entry.file, "utf8");
11032
11043
  const fileImports = extractImports(source);
11033
11044
  for (const fileImport of fileImports) {
11034
11045
  const key = `${fileImport.kind}:${fileImport.source}`;
@@ -11059,12 +11070,12 @@ function traceDirectory(targetDir, root) {
11059
11070
  };
11060
11071
  }
11061
11072
  async function traceTarget(target, options = {}) {
11062
- const root = path28.resolve(options.root ?? process.cwd());
11063
- const resolvedTarget = path28.resolve(root, target);
11064
- if (!fs13.existsSync(resolvedTarget)) {
11073
+ const root = path29.resolve(options.root ?? process.cwd());
11074
+ const resolvedTarget = path29.resolve(root, target);
11075
+ if (!fs14.existsSync(resolvedTarget)) {
11065
11076
  throw new Error(`Trace target not found: ${resolvedTarget}`);
11066
11077
  }
11067
- const stat = fs13.statSync(resolvedTarget);
11078
+ const stat = fs14.statSync(resolvedTarget);
11068
11079
  if (stat.isDirectory()) {
11069
11080
  return traceDirectory(resolvedTarget, root);
11070
11081
  }
@@ -11229,14 +11240,14 @@ function printClassTraceOutput(result, output) {
11229
11240
  init_esm_shims();
11230
11241
  var import_picocolors6 = __toESM(require_picocolors(), 1);
11231
11242
  init_output();
11232
- import fs14 from "fs";
11233
- import path29 from "path";
11243
+ import fs15 from "fs";
11244
+ import path30 from "path";
11234
11245
  async function runGenerateTypesCli(rawArgs) {
11235
11246
  const output = createCliOutput({ json: rawArgs.includes("--json") });
11236
11247
  const logger = createCliLogger({ output });
11237
11248
  const cwd2 = process.cwd();
11238
11249
  const outFile = rawArgs.find((a) => a.startsWith("--out="))?.slice(6) ?? "src/types/tailwind-styled.d.ts";
11239
- const outPath = path29.resolve(cwd2, outFile);
11250
+ const outPath = path30.resolve(cwd2, outFile);
11240
11251
  output.writeText("");
11241
11252
  output.writeText(import_picocolors6.default.bold(import_picocolors6.default.cyan(" \u25C6 tw generate-types")));
11242
11253
  output.writeText(import_picocolors6.default.dim(" \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500"));
@@ -11272,12 +11283,12 @@ async function runGenerateTypesCli(rawArgs) {
11272
11283
  }
11273
11284
  output.writeText("");
11274
11285
  output.writeText(import_picocolors6.default.bold(" [2/2]") + import_picocolors6.default.cyan(" generate .d.ts"));
11275
- const outDir = path29.dirname(outPath);
11276
- if (!fs14.existsSync(outDir)) {
11277
- fs14.mkdirSync(outDir, { recursive: true });
11286
+ const outDir = path30.dirname(outPath);
11287
+ if (!fs15.existsSync(outDir)) {
11288
+ fs15.mkdirSync(outDir, { recursive: true });
11278
11289
  }
11279
- fs14.writeFileSync(outPath, result.dtsContent, "utf-8");
11280
- logger.ok(path29.relative(cwd2, outPath));
11290
+ fs15.writeFileSync(outPath, result.dtsContent, "utf-8");
11291
+ logger.ok(path30.relative(cwd2, outPath));
11281
11292
  output.writeText("");
11282
11293
  output.writeText(import_picocolors6.default.dim(" \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500"));
11283
11294
  output.writeText(import_picocolors6.default.bold(import_picocolors6.default.green(" \u2713 types generated")));
@@ -11288,11 +11299,11 @@ async function runGenerateTypesCli(rawArgs) {
11288
11299
  }
11289
11300
  async function loadNativeBinding2(cwd2) {
11290
11301
  const candidates = [
11291
- path29.join(cwd2, "native", "tailwind-styled-native.node"),
11292
- path29.join(cwd2, "node_modules", "tailwind-styled-v4", "native", "tailwind-styled-native.node")
11302
+ path30.join(cwd2, "native", "tailwind-styled-native.node"),
11303
+ path30.join(cwd2, "node_modules", "tailwind-styled-v4", "native", "tailwind-styled-native.node")
11293
11304
  ];
11294
11305
  for (const candidate of candidates) {
11295
- if (fs14.existsSync(candidate)) {
11306
+ if (fs15.existsSync(candidate)) {
11296
11307
  try {
11297
11308
  return __require(candidate);
11298
11309
  } catch {
@@ -11310,8 +11321,8 @@ import { parseArgs as parseNodeArgs14 } from "util";
11310
11321
  // packages/infrastructure/cli/src/utils/whyService.ts
11311
11322
  init_esm_shims();
11312
11323
  init_internal();
11313
- import fs15 from "fs";
11314
- import path30 from "path";
11324
+ import fs16 from "fs";
11325
+ import path31 from "path";
11315
11326
  init_src2();
11316
11327
  function extractVariantChain(usage) {
11317
11328
  const segments = normalizeScannedClass(usage).split(":").filter(Boolean);
@@ -11359,7 +11370,7 @@ async function whyClass(className, options) {
11359
11370
  for (const file of scanResult.files) {
11360
11371
  const source = (() => {
11361
11372
  try {
11362
- return fs15.readFileSync(file.file, "utf8");
11373
+ return fs16.readFileSync(file.file, "utf8");
11363
11374
  } catch {
11364
11375
  return "";
11365
11376
  }
@@ -11373,7 +11384,7 @@ async function whyClass(className, options) {
11373
11384
  className
11374
11385
  ]);
11375
11386
  usedIn.push({
11376
- file: path30.relative(root, file.file) || path30.basename(file.file),
11387
+ file: path31.relative(root, file.file) || path31.basename(file.file),
11377
11388
  line: location.line,
11378
11389
  column: location.column,
11379
11390
  usage: normalizeScannedClass(fileClass)