tailwind-styled-v4 5.0.39 → 5.0.411

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 +38 -13
  2. package/dist/analyzer.js.map +1 -1
  3. package/dist/analyzer.mjs +104 -72
  4. package/dist/analyzer.mjs.map +1 -1
  5. package/dist/animate.js +33 -7
  6. package/dist/animate.js.map +1 -1
  7. package/dist/animate.mjs +55 -22
  8. package/dist/animate.mjs.map +1 -1
  9. package/dist/atomic.js +39 -10
  10. package/dist/atomic.js.map +1 -1
  11. package/dist/atomic.mjs +56 -23
  12. package/dist/atomic.mjs.map +1 -1
  13. package/dist/cli.js +151 -39
  14. package/dist/cli.js.map +1 -1
  15. package/dist/cli.mjs +321 -203
  16. package/dist/cli.mjs.map +1 -1
  17. package/dist/compiler.js +57 -16
  18. package/dist/compiler.js.map +1 -1
  19. package/dist/compiler.mjs +71 -28
  20. package/dist/compiler.mjs.map +1 -1
  21. package/dist/dashboard.js +0 -1
  22. package/dist/dashboard.js.map +1 -1
  23. package/dist/devtools.js +16 -2
  24. package/dist/devtools.js.map +1 -1
  25. package/dist/devtools.mjs +21 -2
  26. package/dist/devtools.mjs.map +1 -1
  27. package/dist/engine.js +140 -56
  28. package/dist/engine.js.map +1 -1
  29. package/dist/engine.mjs +238 -148
  30. package/dist/engine.mjs.map +1 -1
  31. package/dist/index.js +50 -9
  32. package/dist/index.js.map +1 -1
  33. package/dist/index.mjs +74 -29
  34. package/dist/index.mjs.map +1 -1
  35. package/dist/next.js +97 -41
  36. package/dist/next.js.map +1 -1
  37. package/dist/next.mjs +177 -115
  38. package/dist/next.mjs.map +1 -1
  39. package/dist/plugin-api.js +0 -1
  40. package/dist/plugin-api.js.map +1 -1
  41. package/dist/plugin-registry.js +5 -2
  42. package/dist/plugin-registry.js.map +1 -1
  43. package/dist/plugin-registry.mjs +9 -2
  44. package/dist/plugin-registry.mjs.map +1 -1
  45. package/dist/plugin.js +0 -1
  46. package/dist/plugin.js.map +1 -1
  47. package/dist/preset.js +0 -1
  48. package/dist/preset.js.map +1 -1
  49. package/dist/rspack.js +22 -8
  50. package/dist/rspack.js.map +1 -1
  51. package/dist/rspack.mjs +39 -18
  52. package/dist/rspack.mjs.map +1 -1
  53. package/dist/runtime-css.js +0 -1
  54. package/dist/runtime-css.js.map +1 -1
  55. package/dist/runtime.js +0 -1
  56. package/dist/runtime.js.map +1 -1
  57. package/dist/scanner.js +25 -9
  58. package/dist/scanner.js.map +1 -1
  59. package/dist/scanner.mjs +84 -61
  60. package/dist/scanner.mjs.map +1 -1
  61. package/dist/shared.js +91 -37
  62. package/dist/shared.js.map +1 -1
  63. package/dist/shared.mjs +122 -64
  64. package/dist/shared.mjs.map +1 -1
  65. package/dist/storybook-addon.js +0 -1
  66. package/dist/storybook-addon.js.map +1 -1
  67. package/dist/svelte.js +40 -9
  68. package/dist/svelte.js.map +1 -1
  69. package/dist/svelte.mjs +57 -28
  70. package/dist/svelte.mjs.map +1 -1
  71. package/dist/syntax.js +6 -3
  72. package/dist/syntax.js.map +1 -1
  73. package/dist/syntax.mjs +30 -23
  74. package/dist/syntax.mjs.map +1 -1
  75. package/dist/testing.js +0 -1
  76. package/dist/testing.js.map +1 -1
  77. package/dist/theme.js +21 -4
  78. package/dist/theme.js.map +1 -1
  79. package/dist/theme.mjs +41 -17
  80. package/dist/theme.mjs.map +1 -1
  81. package/dist/turbopackLoader.js +58 -16
  82. package/dist/turbopackLoader.js.map +1 -1
  83. package/dist/turbopackLoader.mjs +89 -45
  84. package/dist/turbopackLoader.mjs.map +1 -1
  85. package/dist/tw.js +153 -39
  86. package/dist/tw.js.map +1 -1
  87. package/dist/tw.mjs +321 -203
  88. package/dist/tw.mjs.map +1 -1
  89. package/dist/vite.js +131 -54
  90. package/dist/vite.js.map +1 -1
  91. package/dist/vite.mjs +226 -143
  92. package/dist/vite.mjs.map +1 -1
  93. package/dist/vue.js +40 -9
  94. package/dist/vue.js.map +1 -1
  95. package/dist/vue.mjs +57 -28
  96. package/dist/vue.mjs.map +1 -1
  97. package/dist/webpackLoader.js +40 -10
  98. package/dist/webpackLoader.js.map +1 -1
  99. package/dist/webpackLoader.mjs +59 -27
  100. package/dist/webpackLoader.mjs.map +1 -1
  101. package/package.json +1 -1
package/dist/analyzer.js CHANGED
@@ -1,4 +1,3 @@
1
- const __importMetaUrl = typeof __filename !== "undefined" ? require("node:url").pathToFileURL(__filename).href : "file://unknown";
2
1
  /* tailwind-styled-v4 v5.0.4 | MIT | https://github.com/dictionar32/tailwind-styled-v4 */
3
2
  "use strict";
4
3
  var __create = Object.create;
@@ -32,6 +31,16 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
32
31
  ));
33
32
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
34
33
 
34
+ // node_modules/tsup/assets/cjs_shims.js
35
+ var getImportMetaUrl, importMetaUrl;
36
+ var init_cjs_shims = __esm({
37
+ "node_modules/tsup/assets/cjs_shims.js"() {
38
+ "use strict";
39
+ getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.tagName.toUpperCase() === "SCRIPT" ? document.currentScript.src : new URL("main.js", document.baseURI).href;
40
+ importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
41
+ }
42
+ });
43
+
35
44
  // packages/domain/shared/src/index.ts
36
45
  function createLogger(namespace) {
37
46
  const prefix = `[${namespace}]`;
@@ -129,10 +138,10 @@ function resolveNativeBindingCandidates(options) {
129
138
  }
130
139
  return Array.from(new Set(candidates));
131
140
  }
132
- function resolveRuntimeDir(dir, importMetaUrl) {
141
+ function resolveRuntimeDir(dir, importMetaUrl2) {
133
142
  if (dir) return import_node_path.default.resolve(dir);
134
143
  try {
135
- return import_node_path.default.dirname((0, import_node_url.fileURLToPath)(importMetaUrl));
144
+ return import_node_path.default.dirname((0, import_node_url.fileURLToPath)(importMetaUrl2));
136
145
  } catch {
137
146
  return process.cwd();
138
147
  }
@@ -141,6 +150,7 @@ var import_node_crypto, import_node_fs, import_node_path, import_node_url, impor
141
150
  var init_src = __esm({
142
151
  "packages/domain/shared/src/index.ts"() {
143
152
  "use strict";
153
+ init_cjs_shims();
144
154
  import_node_crypto = require("crypto");
145
155
  import_node_fs = __toESM(require("fs"));
146
156
  import_node_path = __toESM(require("path"));
@@ -199,7 +209,7 @@ var init_src = __esm({
199
209
  }
200
210
  };
201
211
  _require = (0, import_node_module.createRequire)(
202
- typeof __filename !== "undefined" ? `file://${__filename}` : __importMetaUrl ?? "file://unknown"
212
+ typeof __filename !== "undefined" ? `file://${__filename}` : importMetaUrl ?? "file://unknown"
203
213
  );
204
214
  }
205
215
  });
@@ -237,8 +247,8 @@ function getDirname() {
237
247
  if (typeof __dirname !== "undefined") {
238
248
  return __dirname;
239
249
  }
240
- if (typeof import_meta !== "undefined" && __importMetaUrl) {
241
- return import_node_path2.default.dirname((0, import_node_url2.fileURLToPath)(__importMetaUrl));
250
+ if (typeof import_meta !== "undefined" && importMetaUrl) {
251
+ return import_node_path2.default.dirname((0, import_node_url2.fileURLToPath)(importMetaUrl));
242
252
  }
243
253
  return process.cwd();
244
254
  }
@@ -447,6 +457,7 @@ var import_node_path2, import_node_url2, import_meta, log, isValidScannerBinding
447
457
  var init_native_bridge = __esm({
448
458
  "packages/domain/scanner/src/native-bridge.ts"() {
449
459
  "use strict";
460
+ init_cjs_shims();
450
461
  import_node_path2 = __toESM(require("path"), 1);
451
462
  import_node_url2 = require("url");
452
463
  init_src();
@@ -576,6 +587,7 @@ var import_node_fs2, import_node_path3, STALE_THRESHOLD_MS;
576
587
  var init_cache_native = __esm({
577
588
  "packages/domain/scanner/src/cache-native.ts"() {
578
589
  "use strict";
590
+ init_cjs_shims();
579
591
  import_node_fs2 = __toESM(require("fs"), 1);
580
592
  import_node_path3 = __toESM(require("path"), 1);
581
593
  init_native_bridge();
@@ -644,6 +656,7 @@ var import_node_worker_threads, import_node_path4, import_node_os, import_node_u
644
656
  var init_parallel_scanner = __esm({
645
657
  "packages/domain/scanner/src/parallel-scanner.ts"() {
646
658
  "use strict";
659
+ init_cjs_shims();
647
660
  import_node_worker_threads = require("worker_threads");
648
661
  import_node_path4 = __toESM(require("path"), 1);
649
662
  import_node_os = require("os");
@@ -666,7 +679,7 @@ var init_parallel_scanner = __esm({
666
679
  import_node_worker_threads.parentPort.postMessage(msg);
667
680
  }
668
681
  }
669
- _workerFilename = typeof __filename !== "undefined" ? __filename : (0, import_node_url3.fileURLToPath)(__importMetaUrl);
682
+ _workerFilename = typeof __filename !== "undefined" ? __filename : (0, import_node_url3.fileURLToPath)(importMetaUrl);
670
683
  }
671
684
  });
672
685
 
@@ -675,6 +688,7 @@ var import_zod, formatIssuePath2, formatIssues, parseWithSchema, NonNegativeInte
675
688
  var init_schemas = __esm({
676
689
  "packages/domain/scanner/src/schemas.ts"() {
677
690
  "use strict";
691
+ init_cjs_shims();
678
692
  import_zod = require("zod");
679
693
  init_src();
680
694
  formatIssuePath2 = (path8) => path8.length > 0 ? path8.map(
@@ -758,8 +772,8 @@ function getRuntimeDir() {
758
772
  if (typeof __dirname !== "undefined" && __dirname.length > 0) {
759
773
  return __dirname;
760
774
  }
761
- if (typeof import_meta2 !== "undefined" && __importMetaUrl) {
762
- return import_node_path5.default.dirname((0, import_node_url4.fileURLToPath)(__importMetaUrl));
775
+ if (typeof import_meta2 !== "undefined" && importMetaUrl) {
776
+ return import_node_path5.default.dirname((0, import_node_url4.fileURLToPath)(importMetaUrl));
763
777
  }
764
778
  return process.cwd();
765
779
  }
@@ -768,8 +782,8 @@ function resolveScannerWorkerModulePath() {
768
782
  if (typeof __dirname !== "undefined" && __dirname.length > 0) {
769
783
  return __dirname;
770
784
  }
771
- if (typeof import_meta2 !== "undefined" && __importMetaUrl) {
772
- return import_node_path5.default.dirname((0, import_node_url4.fileURLToPath)(__importMetaUrl));
785
+ if (typeof import_meta2 !== "undefined" && importMetaUrl) {
786
+ return import_node_path5.default.dirname((0, import_node_url4.fileURLToPath)(importMetaUrl));
773
787
  }
774
788
  return process.cwd();
775
789
  })();
@@ -1046,6 +1060,7 @@ var import_node_fs3, import_node_module2, import_node_path5, import_node_url4, i
1046
1060
  var init_src2 = __esm({
1047
1061
  "packages/domain/scanner/src/index.ts"() {
1048
1062
  "use strict";
1063
+ init_cjs_shims();
1049
1064
  import_node_fs3 = __toESM(require("fs"), 1);
1050
1065
  import_node_module2 = require("module");
1051
1066
  import_node_path5 = __toESM(require("path"), 1);
@@ -1153,15 +1168,22 @@ __export(analyzer_exports, {
1153
1168
  classToCss: () => classToCss
1154
1169
  });
1155
1170
  module.exports = __toCommonJS(analyzer_exports);
1171
+ init_cjs_shims();
1172
+
1173
+ // packages/domain/analyzer/src/index.ts
1174
+ init_cjs_shims();
1156
1175
 
1157
1176
  // packages/domain/analyzer/src/analyzeWorkspace.ts
1177
+ init_cjs_shims();
1158
1178
  var import_node_path7 = __toESM(require("path"), 1);
1159
1179
  init_src2();
1160
1180
 
1161
1181
  // packages/domain/analyzer/src/binding.ts
1182
+ init_cjs_shims();
1162
1183
  init_src();
1163
1184
 
1164
1185
  // packages/domain/analyzer/src/utils.ts
1186
+ init_cjs_shims();
1165
1187
  var import_node_fs4 = __toESM(require("fs"), 1);
1166
1188
  init_src();
1167
1189
  var DEFAULT_TOP_LIMIT = 10;
@@ -1205,7 +1227,7 @@ var createAnalyzerBindingLoader = () => {
1205
1227
  _state.bindingPromise = (async () => {
1206
1228
  const runtimeDir = resolveRuntimeDir(
1207
1229
  typeof __dirname === "string" ? __dirname : void 0,
1208
- __importMetaUrl
1230
+ importMetaUrl
1209
1231
  );
1210
1232
  const candidates = resolveNativeBindingCandidates({
1211
1233
  runtimeDir,
@@ -1248,7 +1270,7 @@ async function requireNativeBinding() {
1248
1270
  if (binding?.analyzeClasses) return binding;
1249
1271
  const runtimeDir = resolveRuntimeDir(
1250
1272
  typeof __dirname === "string" ? __dirname : void 0,
1251
- __importMetaUrl
1273
+ importMetaUrl
1252
1274
  );
1253
1275
  const candidates = resolveNativeBindingCandidates({
1254
1276
  runtimeDir,
@@ -1280,6 +1302,7 @@ async function requireNativeCssCompiler() {
1280
1302
  }
1281
1303
 
1282
1304
  // packages/domain/analyzer/src/schemas.ts
1305
+ init_cjs_shims();
1283
1306
  init_src();
1284
1307
  var import_zod2 = require("zod");
1285
1308
  var formatIssuePath3 = (path8) => path8.length > 0 ? path8.map(
@@ -1388,6 +1411,7 @@ var parseNativeCssCompileResult = (result, className) => parseWithSchema2(
1388
1411
  var parseClassToCssOptions = (options) => parseWithSchema2(ClassToCssOptionsSchema, options ?? {}, "classToCss options are invalid");
1389
1412
 
1390
1413
  // packages/domain/analyzer/src/semantic.ts
1414
+ init_cjs_shims();
1391
1415
  var import_node_fs5 = __toESM(require("fs"), 1);
1392
1416
  var import_node_path6 = __toESM(require("path"), 1);
1393
1417
  var import_node_url5 = require("url");
@@ -1802,6 +1826,7 @@ async function analyzeWorkspace(root, options = {}) {
1802
1826
  }
1803
1827
 
1804
1828
  // packages/domain/analyzer/src/classToCss.ts
1829
+ init_cjs_shims();
1805
1830
  var normalizeClassInput = (input, binding) => {
1806
1831
  if (typeof input === "string") {
1807
1832
  if (!binding.normalizeClassInput) {