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
@@ -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,7 +31,26 @@ 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/native-resolution.ts
45
+ function _safeCreateRequire() {
46
+ if (typeof import_meta !== "undefined" && importMetaUrl && !importMetaUrl.includes("unknown")) {
47
+ return (0, import_node_module.createRequire)(importMetaUrl);
48
+ }
49
+ if (typeof __filename !== "undefined") {
50
+ return (0, import_node_module.createRequire)(__filename);
51
+ }
52
+ return (0, import_node_module.createRequire)(new URL(`file://${process.cwd()}/`).href);
53
+ }
36
54
  function platformKey() {
37
55
  if (isBrowser) return "browser";
38
56
  return `${process.platform}-${process.arch}`;
@@ -114,17 +132,17 @@ function resolveNativeBinary(runtimeDir) {
114
132
  }
115
133
  return { path: null, source: "not-found", platform, tried };
116
134
  }
117
- var import_node_module, fs, path, isBrowser, _require, PLATFORM_MAP;
135
+ var import_node_module, fs, path, import_meta, isBrowser, _require, PLATFORM_MAP;
118
136
  var init_native_resolution = __esm({
119
137
  "packages/domain/shared/src/native-resolution.ts"() {
120
138
  "use strict";
139
+ init_cjs_shims();
121
140
  import_node_module = require("module");
122
141
  fs = __toESM(require("fs"));
123
142
  path = __toESM(require("path"));
143
+ import_meta = {};
124
144
  isBrowser = typeof window !== "undefined" || typeof document !== "undefined";
125
- _require = (0, import_node_module.createRequire)(
126
- typeof require !== "undefined" ? typeof __filename !== "undefined" ? `file://${__filename}` : "file://unknown" : __importMetaUrl
127
- );
145
+ _require = _safeCreateRequire();
128
146
  PLATFORM_MAP = {
129
147
  "linux-x64": ["@tailwind-styled/native-linux-x64-gnu", "@tailwind-styled/native-linux-x64"],
130
148
  "linux-arm64": ["@tailwind-styled/native-linux-arm64-gnu", "@tailwind-styled/native-linux-arm64"],
@@ -137,10 +155,10 @@ var init_native_resolution = __esm({
137
155
  });
138
156
 
139
157
  // packages/domain/shared/src/index.ts
140
- function resolveRuntimeDir(dir, importMetaUrl) {
158
+ function resolveRuntimeDir(dir, importMetaUrl2) {
141
159
  if (dir) return import_node_path.default.resolve(dir);
142
160
  try {
143
- return import_node_path.default.dirname((0, import_node_url.fileURLToPath)(importMetaUrl));
161
+ return import_node_path.default.dirname((0, import_node_url.fileURLToPath)(importMetaUrl2));
144
162
  } catch {
145
163
  return process.cwd();
146
164
  }
@@ -149,6 +167,7 @@ var import_node_crypto, import_node_fs, import_node_path, import_node_url, impor
149
167
  var init_src = __esm({
150
168
  "packages/domain/shared/src/index.ts"() {
151
169
  "use strict";
170
+ init_cjs_shims();
152
171
  import_node_crypto = require("crypto");
153
172
  import_node_fs = __toESM(require("fs"));
154
173
  import_node_path = __toESM(require("path"));
@@ -156,7 +175,7 @@ var init_src = __esm({
156
175
  import_node_module2 = require("module");
157
176
  init_native_resolution();
158
177
  _require2 = (0, import_node_module2.createRequire)(
159
- typeof __filename !== "undefined" ? `file://${__filename}` : __importMetaUrl ?? "file://unknown"
178
+ typeof __filename !== "undefined" ? `file://${__filename}` : importMetaUrl ?? "file://unknown"
160
179
  );
161
180
  }
162
181
  });
@@ -166,6 +185,7 @@ var _loadNative, log, NATIVE_UNAVAILABLE_MESSAGE, nativeBridge, bridgeLoadAttemp
166
185
  var init_nativeBridge = __esm({
167
186
  "packages/domain/compiler/src/nativeBridge.ts"() {
168
187
  "use strict";
188
+ init_cjs_shims();
169
189
  init_src();
170
190
  _loadNative = (path6) => require(path6);
171
191
  log = (...args) => {
@@ -193,7 +213,7 @@ var init_nativeBridge = __esm({
193
213
  }
194
214
  bridgeLoadAttempted = true;
195
215
  try {
196
- const runtimeDir = resolveRuntimeDir(void 0, __importMetaUrl);
216
+ const runtimeDir = resolveRuntimeDir(void 0, importMetaUrl);
197
217
  const result = resolveNativeBinary(runtimeDir);
198
218
  if (result.path && result.path.endsWith(".node")) {
199
219
  try {
@@ -265,6 +285,7 @@ Tried paths: ${result.tried.join("\n")}`);
265
285
  var init_compiler = __esm({
266
286
  "packages/domain/compiler/src/compiler/index.ts"() {
267
287
  "use strict";
288
+ init_cjs_shims();
268
289
  }
269
290
  });
270
291
 
@@ -272,6 +293,7 @@ var init_compiler = __esm({
272
293
  var init_parser = __esm({
273
294
  "packages/domain/compiler/src/parser/index.ts"() {
274
295
  "use strict";
296
+ init_cjs_shims();
275
297
  }
276
298
  });
277
299
 
@@ -279,6 +301,7 @@ var init_parser = __esm({
279
301
  var init_analyzer = __esm({
280
302
  "packages/domain/compiler/src/analyzer/index.ts"() {
281
303
  "use strict";
304
+ init_cjs_shims();
282
305
  }
283
306
  });
284
307
 
@@ -286,6 +309,7 @@ var init_analyzer = __esm({
286
309
  var init_cache = __esm({
287
310
  "packages/domain/compiler/src/cache/index.ts"() {
288
311
  "use strict";
312
+ init_cjs_shims();
289
313
  }
290
314
  });
291
315
 
@@ -293,6 +317,7 @@ var init_cache = __esm({
293
317
  var init_redis = __esm({
294
318
  "packages/domain/compiler/src/redis/index.ts"() {
295
319
  "use strict";
320
+ init_cjs_shims();
296
321
  }
297
322
  });
298
323
 
@@ -300,6 +325,7 @@ var init_redis = __esm({
300
325
  var init_watch = __esm({
301
326
  "packages/domain/compiler/src/watch/index.ts"() {
302
327
  "use strict";
328
+ init_cjs_shims();
303
329
  }
304
330
  });
305
331
 
@@ -342,6 +368,7 @@ var import_node_fs2, import_node_path2, import_node_module3, _require3, transfor
342
368
  var init_src2 = __esm({
343
369
  "packages/domain/compiler/src/index.ts"() {
344
370
  "use strict";
371
+ init_cjs_shims();
345
372
  import_node_fs2 = __toESM(require("fs"), 1);
346
373
  import_node_path2 = __toESM(require("path"), 1);
347
374
  import_node_module3 = require("module");
@@ -353,7 +380,7 @@ var init_src2 = __esm({
353
380
  init_redis();
354
381
  init_watch();
355
382
  _require3 = (0, import_node_module3.createRequire)(
356
- typeof require !== "undefined" ? typeof __filename !== "undefined" ? `file://${__filename}` : "file://unknown" : __importMetaUrl
383
+ typeof require !== "undefined" ? typeof __filename !== "undefined" ? `file://${__filename}` : "file://unknown" : importMetaUrl
357
384
  );
358
385
  transformSource = (source, opts) => {
359
386
  const native = getNativeBridge();
@@ -453,6 +480,7 @@ var init_src2 = __esm({
453
480
  var init_internal = __esm({
454
481
  "packages/domain/compiler/src/internal.ts"() {
455
482
  "use strict";
483
+ init_cjs_shims();
456
484
  init_src2();
457
485
  init_compiler();
458
486
  init_parser();
@@ -469,11 +497,13 @@ __export(webpackLoader_exports, {
469
497
  default: () => webpackLoader
470
498
  });
471
499
  module.exports = __toCommonJS(webpackLoader_exports);
500
+ init_cjs_shims();
472
501
  init_internal();
473
502
  var import_node_path4 = __toESM(require("path"), 1);
474
503
  var import_zod = require("zod");
475
504
 
476
505
  // packages/presentation/next/src/staticCssWebpackPlugin.ts
506
+ init_cjs_shims();
477
507
  var import_node_fs3 = __toESM(require("fs"), 1);
478
508
  var import_node_path3 = __toESM(require("path"), 1);
479
509
  var _fileStaticCssMap = /* @__PURE__ */ new Map();