tailwind-styled-v4 5.0.38 → 5.0.40

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 +18 -20
  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 +45 -95
  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 +23 -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 +83 -53
  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 +15 -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 +35 -30
  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 -2
  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 +9 -55
  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 +14 -15
  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 +64 -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 +15 -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 -3
  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 -7
  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 +23 -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 +45 -95
  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 +80 -51
  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 +15 -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 (false) {
241
+ return path2.dirname(fileURLToPath2(__importMetaUrl));
240
242
  }
241
243
  return process.cwd();
242
244
  }
@@ -441,14 +443,13 @@ 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, 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
- import_node_path2 = __toESM(require("path"), 1);
450
+ import_node_path2 = require("path");
449
451
  import_node_url2 = require("url");
450
452
  init_src();
451
- import_meta2 = {};
452
453
  log = createDebugLogger("scanner:native");
453
454
  isValidScannerBinding = (module2) => {
454
455
  const candidate = module2;
@@ -638,7 +639,7 @@ async function scanWorkspaceParallel(rootDir, options = {}) {
638
639
  }
639
640
  return mergeResults(allResults);
640
641
  }
641
- var import_node_worker_threads, import_node_path4, import_node_os, import_node_url3, import_meta3, PARALLEL_THRESHOLD, DEFAULT_CHUNK_SIZE, _workerFilename;
642
+ var import_node_worker_threads, import_node_path4, import_node_os, import_node_url3, PARALLEL_THRESHOLD, DEFAULT_CHUNK_SIZE, _workerFilename;
642
643
  var init_parallel_scanner = __esm({
643
644
  "packages/domain/scanner/src/parallel-scanner.ts"() {
644
645
  "use strict";
@@ -648,7 +649,6 @@ var init_parallel_scanner = __esm({
648
649
  import_node_url3 = require("url");
649
650
  init_src2();
650
651
  init_native_bridge();
651
- import_meta3 = {};
652
652
  PARALLEL_THRESHOLD = 50;
653
653
  DEFAULT_CHUNK_SIZE = 150;
654
654
  if (!import_node_worker_threads.isMainThread && import_node_worker_threads.parentPort) {
@@ -665,7 +665,7 @@ var init_parallel_scanner = __esm({
665
665
  import_node_worker_threads.parentPort.postMessage(msg);
666
666
  }
667
667
  }
668
- _workerFilename = typeof __filename !== "undefined" ? __filename : (0, import_node_url3.fileURLToPath)(import_meta3.url);
668
+ _workerFilename = typeof __filename !== "undefined" ? __filename : (0, import_node_url3.fileURLToPath)(__importMetaUrl);
669
669
  }
670
670
  });
671
671
 
@@ -757,8 +757,8 @@ function getRuntimeDir() {
757
757
  if (typeof __dirname !== "undefined" && __dirname.length > 0) {
758
758
  return __dirname;
759
759
  }
760
- if (typeof import_meta4 !== "undefined" && import_meta4.url) {
761
- return import_node_path5.default.dirname((0, import_node_url4.fileURLToPath)(import_meta4.url));
760
+ if (false) {
761
+ return import_node_path5.default.dirname(fileURLToPath4(__importMetaUrl));
762
762
  }
763
763
  return process.cwd();
764
764
  }
@@ -767,8 +767,8 @@ function resolveScannerWorkerModulePath() {
767
767
  if (typeof __dirname !== "undefined" && __dirname.length > 0) {
768
768
  return __dirname;
769
769
  }
770
- if (typeof import_meta4 !== "undefined" && import_meta4.url) {
771
- return import_node_path5.default.dirname((0, import_node_url4.fileURLToPath)(import_meta4.url));
770
+ if (false) {
771
+ return import_node_path5.default.dirname(fileURLToPath4(__importMetaUrl));
772
772
  }
773
773
  return process.cwd();
774
774
  })();
@@ -1041,7 +1041,7 @@ async function scanWorkspaceAsync(rootDir, options = {}) {
1041
1041
  return scanWorkspace(rootDir, normalizedOptions);
1042
1042
  }
1043
1043
  }
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;
1044
+ var import_node_fs3, import_node_module2, import_node_path5, import_node_url4, import_node_worker_threads2, log2, SCAN_WORKER_TIMEOUT_MS, createNativeParserLoader, nativeParserLoader, DEFAULT_EXTENSIONS, DEFAULT_IGNORES;
1045
1045
  var init_src2 = __esm({
1046
1046
  "packages/domain/scanner/src/index.ts"() {
1047
1047
  "use strict";
@@ -1057,7 +1057,6 @@ var init_src2 = __esm({
1057
1057
  init_schemas();
1058
1058
  init_schemas();
1059
1059
  init_native_bridge();
1060
- import_meta4 = {};
1061
1060
  log2 = createLogger("scanner");
1062
1061
  SCAN_WORKER_TIMEOUT_MS = 12e4;
1063
1062
  createNativeParserLoader = () => {
@@ -1193,7 +1192,6 @@ function sanitizeFrequentThreshold(value) {
1193
1192
  }
1194
1193
 
1195
1194
  // packages/domain/analyzer/src/binding.ts
1196
- var import_meta5 = {};
1197
1195
  var isAnalyzerModule = (module2) => {
1198
1196
  const candidate = module2;
1199
1197
  return typeof candidate?.analyzeClasses === "function" || typeof candidate?.analyzeClassesWorkspace === "function";
@@ -1205,7 +1203,7 @@ var createAnalyzerBindingLoader = () => {
1205
1203
  _state.bindingPromise = (async () => {
1206
1204
  const runtimeDir = resolveRuntimeDir(
1207
1205
  typeof __dirname === "string" ? __dirname : void 0,
1208
- import_meta5.url
1206
+ __importMetaUrl
1209
1207
  );
1210
1208
  const candidates = resolveNativeBindingCandidates({
1211
1209
  runtimeDir,
@@ -1248,7 +1246,7 @@ async function requireNativeBinding() {
1248
1246
  if (binding?.analyzeClasses) return binding;
1249
1247
  const runtimeDir = resolveRuntimeDir(
1250
1248
  typeof __dirname === "string" ? __dirname : void 0,
1251
- import_meta5.url
1249
+ __importMetaUrl
1252
1250
  );
1253
1251
  const candidates = resolveNativeBindingCandidates({
1254
1252
  runtimeDir,