tailwind-styled-v4 5.0.38 → 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 (101) hide show
  1. package/dist/analyzer.js +19 -19
  2. package/dist/analyzer.js.map +1 -1
  3. package/dist/analyzer.mjs +3 -1
  4. package/dist/analyzer.mjs.map +1 -1
  5. package/dist/animate.js +8 -8
  6. package/dist/animate.js.map +1 -1
  7. package/dist/animate.mjs +3 -1
  8. package/dist/animate.mjs.map +1 -1
  9. package/dist/atomic.js +15 -12
  10. package/dist/atomic.js.map +1 -1
  11. package/dist/atomic.mjs +9 -3
  12. package/dist/atomic.mjs.map +1 -1
  13. package/dist/cli.js +71 -49
  14. package/dist/cli.js.map +1 -1
  15. package/dist/cli.mjs +42 -13
  16. package/dist/cli.mjs.map +1 -1
  17. package/dist/compiler.js +25 -18
  18. package/dist/compiler.js.map +1 -1
  19. package/dist/compiler.mjs +15 -5
  20. package/dist/compiler.mjs.map +1 -1
  21. package/dist/dashboard.js +1 -0
  22. package/dist/dashboard.js.map +1 -1
  23. package/dist/devtools.js +5 -3
  24. package/dist/devtools.js.map +1 -1
  25. package/dist/devtools.mjs +3 -1
  26. package/dist/devtools.mjs.map +1 -1
  27. package/dist/engine.js +88 -52
  28. package/dist/engine.js.map +1 -1
  29. package/dist/engine.mjs +58 -16
  30. package/dist/engine.mjs.map +1 -1
  31. package/dist/index.js +16 -9
  32. package/dist/index.js.map +1 -1
  33. package/dist/index.mjs +12 -4
  34. package/dist/index.mjs.map +1 -1
  35. package/dist/next.js +39 -29
  36. package/dist/next.js.map +1 -1
  37. package/dist/next.mjs +21 -8
  38. package/dist/next.mjs.map +1 -1
  39. package/dist/plugin-api.js +1 -0
  40. package/dist/plugin-api.js.map +1 -1
  41. package/dist/plugin-registry.js +2 -1
  42. package/dist/plugin-registry.js.map +1 -1
  43. package/dist/plugin.js +1 -0
  44. package/dist/plugin.js.map +1 -1
  45. package/dist/preset.js +1 -0
  46. package/dist/preset.js.map +1 -1
  47. package/dist/rspack.js +37 -14
  48. package/dist/rspack.js.map +1 -1
  49. package/dist/rspack.mjs +31 -7
  50. package/dist/rspack.mjs.map +1 -1
  51. package/dist/runtime-css.js +1 -0
  52. package/dist/runtime-css.js.map +1 -1
  53. package/dist/runtime.js +1 -0
  54. package/dist/runtime.js.map +1 -1
  55. package/dist/scanner.js +15 -14
  56. package/dist/scanner.js.map +1 -1
  57. package/dist/scanner.mjs +3 -1
  58. package/dist/scanner.mjs.map +1 -1
  59. package/dist/shared.d.mts +0 -12
  60. package/dist/shared.d.ts +0 -12
  61. package/dist/shared.js +66 -30
  62. package/dist/shared.js.map +1 -1
  63. package/dist/shared.mjs +55 -15
  64. package/dist/shared.mjs.map +1 -1
  65. package/dist/storybook-addon.js +1 -0
  66. package/dist/storybook-addon.js.map +1 -1
  67. package/dist/svelte.js +16 -9
  68. package/dist/svelte.js.map +1 -1
  69. package/dist/svelte.mjs +12 -4
  70. package/dist/svelte.mjs.map +1 -1
  71. package/dist/syntax.js +3 -2
  72. package/dist/syntax.js.map +1 -1
  73. package/dist/testing.js +1 -0
  74. package/dist/testing.js.map +1 -1
  75. package/dist/theme.js +8 -6
  76. package/dist/theme.js.map +1 -1
  77. package/dist/theme.mjs +3 -1
  78. package/dist/theme.mjs.map +1 -1
  79. package/dist/turbopackLoader.js +25 -18
  80. package/dist/turbopackLoader.js.map +1 -1
  81. package/dist/turbopackLoader.mjs +15 -5
  82. package/dist/turbopackLoader.mjs.map +1 -1
  83. package/dist/tw.js +71 -49
  84. package/dist/tw.js.map +1 -1
  85. package/dist/tw.mjs +42 -13
  86. package/dist/tw.mjs.map +1 -1
  87. package/dist/vite.js +84 -50
  88. package/dist/vite.js.map +1 -1
  89. package/dist/vite.mjs +55 -15
  90. package/dist/vite.mjs.map +1 -1
  91. package/dist/vue.js +16 -9
  92. package/dist/vue.js.map +1 -1
  93. package/dist/vue.mjs +12 -4
  94. package/dist/vue.mjs.map +1 -1
  95. package/dist/webpackLoader.js +15 -12
  96. package/dist/webpackLoader.js.map +1 -1
  97. package/dist/webpackLoader.mjs +9 -3
  98. package/dist/webpackLoader.mjs.map +1 -1
  99. package/native/tailwind-styled-native.linux-x64-gnu.node +0 -0
  100. package/native/tailwind-styled-native.node +0 -0
  101. package/package.json +1 -1
package/dist/analyzer.js CHANGED
@@ -1,3 +1,4 @@
1
+ const __importMetaUrl = typeof __filename !== "undefined" ? require("node:url").pathToFileURL(__filename).href : "file://unknown";
1
2
  /* tailwind-styled-v4 v5.0.4 | MIT | https://github.com/dictionar32/tailwind-styled-v4 */
2
3
  "use strict";
3
4
  var __create = Object.create;
@@ -136,7 +137,7 @@ function resolveRuntimeDir(dir, importMetaUrl) {
136
137
  return process.cwd();
137
138
  }
138
139
  }
139
- var import_node_crypto, import_node_fs, import_node_path, import_node_url, import_node_module, import_meta, TwError, _require;
140
+ var import_node_crypto, import_node_fs, import_node_path, import_node_url, import_node_module, TwError, _require;
140
141
  var init_src = __esm({
141
142
  "packages/domain/shared/src/index.ts"() {
142
143
  "use strict";
@@ -145,7 +146,6 @@ var init_src = __esm({
145
146
  import_node_path = __toESM(require("path"));
146
147
  import_node_url = require("url");
147
148
  import_node_module = require("module");
148
- import_meta = {};
149
149
  TwError = class _TwError extends Error {
150
150
  /** @deprecated Gunakan source */
151
151
  domain;
@@ -198,7 +198,9 @@ var init_src = __esm({
198
198
  return `[${this.source.toUpperCase()}:${this.code}] ${this.message}`;
199
199
  }
200
200
  };
201
- _require = (0, import_node_module.createRequire)(import_meta.url);
201
+ _require = (0, import_node_module.createRequire)(
202
+ typeof __filename !== "undefined" ? `file://${__filename}` : __importMetaUrl ?? "file://unknown"
203
+ );
202
204
  }
203
205
  });
204
206
 
@@ -235,8 +237,8 @@ function getDirname() {
235
237
  if (typeof __dirname !== "undefined") {
236
238
  return __dirname;
237
239
  }
238
- if (typeof import_meta2 !== "undefined" && import_meta2.url) {
239
- return import_node_path2.default.dirname((0, import_node_url2.fileURLToPath)(import_meta2.url));
240
+ if (typeof import_meta !== "undefined" && __importMetaUrl) {
241
+ return import_node_path2.default.dirname((0, import_node_url2.fileURLToPath)(__importMetaUrl));
240
242
  }
241
243
  return process.cwd();
242
244
  }
@@ -441,14 +443,14 @@ function hasNativeWatchBinding() {
441
443
  return false;
442
444
  }
443
445
  }
444
- var import_node_path2, import_node_url2, import_meta2, log, isValidScannerBinding, createScannerBridgeLoader, scannerBridgeLoader, scannerGetBinding, resetScannerBridgeCache;
446
+ var import_node_path2, import_node_url2, import_meta, log, isValidScannerBinding, createScannerBridgeLoader, scannerBridgeLoader, scannerGetBinding, resetScannerBridgeCache;
445
447
  var init_native_bridge = __esm({
446
448
  "packages/domain/scanner/src/native-bridge.ts"() {
447
449
  "use strict";
448
450
  import_node_path2 = __toESM(require("path"), 1);
449
451
  import_node_url2 = require("url");
450
452
  init_src();
451
- import_meta2 = {};
453
+ import_meta = {};
452
454
  log = createDebugLogger("scanner:native");
453
455
  isValidScannerBinding = (module2) => {
454
456
  const candidate = module2;
@@ -638,7 +640,7 @@ async function scanWorkspaceParallel(rootDir, options = {}) {
638
640
  }
639
641
  return mergeResults(allResults);
640
642
  }
641
- var import_node_worker_threads, import_node_path4, import_node_os, import_node_url3, import_meta3, PARALLEL_THRESHOLD, DEFAULT_CHUNK_SIZE, _workerFilename;
643
+ var import_node_worker_threads, import_node_path4, import_node_os, import_node_url3, PARALLEL_THRESHOLD, DEFAULT_CHUNK_SIZE, _workerFilename;
642
644
  var init_parallel_scanner = __esm({
643
645
  "packages/domain/scanner/src/parallel-scanner.ts"() {
644
646
  "use strict";
@@ -648,7 +650,6 @@ var init_parallel_scanner = __esm({
648
650
  import_node_url3 = require("url");
649
651
  init_src2();
650
652
  init_native_bridge();
651
- import_meta3 = {};
652
653
  PARALLEL_THRESHOLD = 50;
653
654
  DEFAULT_CHUNK_SIZE = 150;
654
655
  if (!import_node_worker_threads.isMainThread && import_node_worker_threads.parentPort) {
@@ -665,7 +666,7 @@ var init_parallel_scanner = __esm({
665
666
  import_node_worker_threads.parentPort.postMessage(msg);
666
667
  }
667
668
  }
668
- _workerFilename = typeof __filename !== "undefined" ? __filename : (0, import_node_url3.fileURLToPath)(import_meta3.url);
669
+ _workerFilename = typeof __filename !== "undefined" ? __filename : (0, import_node_url3.fileURLToPath)(__importMetaUrl);
669
670
  }
670
671
  });
671
672
 
@@ -757,8 +758,8 @@ function getRuntimeDir() {
757
758
  if (typeof __dirname !== "undefined" && __dirname.length > 0) {
758
759
  return __dirname;
759
760
  }
760
- if (typeof import_meta4 !== "undefined" && import_meta4.url) {
761
- return import_node_path5.default.dirname((0, import_node_url4.fileURLToPath)(import_meta4.url));
761
+ if (typeof import_meta2 !== "undefined" && __importMetaUrl) {
762
+ return import_node_path5.default.dirname((0, import_node_url4.fileURLToPath)(__importMetaUrl));
762
763
  }
763
764
  return process.cwd();
764
765
  }
@@ -767,8 +768,8 @@ function resolveScannerWorkerModulePath() {
767
768
  if (typeof __dirname !== "undefined" && __dirname.length > 0) {
768
769
  return __dirname;
769
770
  }
770
- if (typeof import_meta4 !== "undefined" && import_meta4.url) {
771
- return import_node_path5.default.dirname((0, import_node_url4.fileURLToPath)(import_meta4.url));
771
+ if (typeof import_meta2 !== "undefined" && __importMetaUrl) {
772
+ return import_node_path5.default.dirname((0, import_node_url4.fileURLToPath)(__importMetaUrl));
772
773
  }
773
774
  return process.cwd();
774
775
  })();
@@ -1041,7 +1042,7 @@ async function scanWorkspaceAsync(rootDir, options = {}) {
1041
1042
  return scanWorkspace(rootDir, normalizedOptions);
1042
1043
  }
1043
1044
  }
1044
- var import_node_fs3, import_node_module2, import_node_path5, import_node_url4, import_node_worker_threads2, import_meta4, log2, SCAN_WORKER_TIMEOUT_MS, createNativeParserLoader, nativeParserLoader, DEFAULT_EXTENSIONS, DEFAULT_IGNORES;
1045
+ var import_node_fs3, import_node_module2, import_node_path5, import_node_url4, import_node_worker_threads2, import_meta2, log2, SCAN_WORKER_TIMEOUT_MS, createNativeParserLoader, nativeParserLoader, DEFAULT_EXTENSIONS, DEFAULT_IGNORES;
1045
1046
  var init_src2 = __esm({
1046
1047
  "packages/domain/scanner/src/index.ts"() {
1047
1048
  "use strict";
@@ -1057,7 +1058,7 @@ var init_src2 = __esm({
1057
1058
  init_schemas();
1058
1059
  init_schemas();
1059
1060
  init_native_bridge();
1060
- import_meta4 = {};
1061
+ import_meta2 = {};
1061
1062
  log2 = createLogger("scanner");
1062
1063
  SCAN_WORKER_TIMEOUT_MS = 12e4;
1063
1064
  createNativeParserLoader = () => {
@@ -1193,7 +1194,6 @@ function sanitizeFrequentThreshold(value) {
1193
1194
  }
1194
1195
 
1195
1196
  // packages/domain/analyzer/src/binding.ts
1196
- var import_meta5 = {};
1197
1197
  var isAnalyzerModule = (module2) => {
1198
1198
  const candidate = module2;
1199
1199
  return typeof candidate?.analyzeClasses === "function" || typeof candidate?.analyzeClassesWorkspace === "function";
@@ -1205,7 +1205,7 @@ var createAnalyzerBindingLoader = () => {
1205
1205
  _state.bindingPromise = (async () => {
1206
1206
  const runtimeDir = resolveRuntimeDir(
1207
1207
  typeof __dirname === "string" ? __dirname : void 0,
1208
- import_meta5.url
1208
+ __importMetaUrl
1209
1209
  );
1210
1210
  const candidates = resolveNativeBindingCandidates({
1211
1211
  runtimeDir,
@@ -1248,7 +1248,7 @@ async function requireNativeBinding() {
1248
1248
  if (binding?.analyzeClasses) return binding;
1249
1249
  const runtimeDir = resolveRuntimeDir(
1250
1250
  typeof __dirname === "string" ? __dirname : void 0,
1251
- import_meta5.url
1251
+ __importMetaUrl
1252
1252
  );
1253
1253
  const candidates = resolveNativeBindingCandidates({
1254
1254
  runtimeDir,