tailwind-styled-v4 5.1.22 → 5.1.23

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 (61) hide show
  1. package/README.md +216 -0
  2. package/dist/atomic.js +34 -4
  3. package/dist/atomic.js.map +1 -1
  4. package/dist/atomic.mjs +31 -2
  5. package/dist/atomic.mjs.map +1 -1
  6. package/dist/cli.js +132 -97
  7. package/dist/cli.js.map +1 -1
  8. package/dist/cli.mjs +129 -95
  9. package/dist/cli.mjs.map +1 -1
  10. package/dist/compiler.d.mts +195 -1
  11. package/dist/compiler.d.ts +195 -1
  12. package/dist/compiler.js +356 -12
  13. package/dist/compiler.js.map +1 -1
  14. package/dist/compiler.mjs +340 -10
  15. package/dist/compiler.mjs.map +1 -1
  16. package/dist/engine.js +194 -164
  17. package/dist/engine.js.map +1 -1
  18. package/dist/engine.mjs +184 -155
  19. package/dist/engine.mjs.map +1 -1
  20. package/dist/index.browser.mjs +144 -14
  21. package/dist/index.browser.mjs.map +1 -1
  22. package/dist/index.d.mts +45 -4
  23. package/dist/index.d.ts +45 -4
  24. package/dist/index.js +174 -9
  25. package/dist/index.js.map +1 -1
  26. package/dist/index.mjs +185 -21
  27. package/dist/index.mjs.map +1 -1
  28. package/dist/next.js +489 -158
  29. package/dist/next.js.map +1 -1
  30. package/dist/next.mjs +483 -153
  31. package/dist/next.mjs.map +1 -1
  32. package/dist/runtime-css.js +1 -1
  33. package/dist/runtime-css.js.map +1 -1
  34. package/dist/runtime-css.mjs +1 -1
  35. package/dist/runtime-css.mjs.map +1 -1
  36. package/dist/runtime.js +17 -0
  37. package/dist/runtime.js.map +1 -1
  38. package/dist/runtime.mjs +23 -0
  39. package/dist/runtime.mjs.map +1 -1
  40. package/dist/shared.js +91 -61
  41. package/dist/shared.js.map +1 -1
  42. package/dist/shared.mjs +85 -56
  43. package/dist/shared.mjs.map +1 -1
  44. package/dist/turbopackLoader.js +79 -49
  45. package/dist/turbopackLoader.js.map +1 -1
  46. package/dist/turbopackLoader.mjs +76 -47
  47. package/dist/turbopackLoader.mjs.map +1 -1
  48. package/dist/tw.js +132 -97
  49. package/dist/tw.js.map +1 -1
  50. package/dist/tw.mjs +129 -95
  51. package/dist/tw.mjs.map +1 -1
  52. package/dist/vite.js +157 -127
  53. package/dist/vite.js.map +1 -1
  54. package/dist/vite.mjs +150 -121
  55. package/dist/vite.mjs.map +1 -1
  56. package/dist/webpackLoader.js +39 -9
  57. package/dist/webpackLoader.js.map +1 -1
  58. package/dist/webpackLoader.mjs +36 -7
  59. package/dist/webpackLoader.mjs.map +1 -1
  60. package/package.json +1 -1
  61. package/CHANGELOG.md +0 -182
@@ -166,7 +166,7 @@ var init_nativeBridge = __esm({
166
166
  "use strict";
167
167
  init_esm_shims();
168
168
  init_src();
169
- _loadNative = (path8) => __require(path8);
169
+ _loadNative = (path9) => __require(path9);
170
170
  log = (...args) => {
171
171
  if (process.env.DEBUG?.includes("compiler:native")) {
172
172
  console.log("[compiler:native]", ...args);
@@ -318,9 +318,35 @@ var init_routeGraph = __esm({
318
318
  }
319
319
  });
320
320
 
321
- // packages/domain/compiler/src/index.ts
321
+ // packages/domain/compiler/src/semanticComponentAnalyzer.ts
322
+ var init_semanticComponentAnalyzer = __esm({
323
+ "packages/domain/compiler/src/semanticComponentAnalyzer.ts"() {
324
+ "use strict";
325
+ init_esm_shims();
326
+ }
327
+ });
328
+
329
+ // packages/domain/compiler/src/typeGeneratorFromMetadata.ts
330
+ var init_typeGeneratorFromMetadata = __esm({
331
+ "packages/domain/compiler/src/typeGeneratorFromMetadata.ts"() {
332
+ "use strict";
333
+ init_esm_shims();
334
+ }
335
+ });
336
+
337
+ // packages/domain/compiler/src/typeGenerationPlugin.ts
322
338
  import fs4 from "fs";
323
339
  import path5 from "path";
340
+ var init_typeGenerationPlugin = __esm({
341
+ "packages/domain/compiler/src/typeGenerationPlugin.ts"() {
342
+ "use strict";
343
+ init_esm_shims();
344
+ }
345
+ });
346
+
347
+ // packages/domain/compiler/src/index.ts
348
+ import fs5 from "fs";
349
+ import path6 from "path";
324
350
  import { createRequire as createRequire3 } from "module";
325
351
  function _layoutClassesToCss(classes) {
326
352
  const native = getNativeBridge();
@@ -369,6 +395,9 @@ var init_src2 = __esm({
369
395
  init_redis();
370
396
  init_watch();
371
397
  init_routeGraph();
398
+ init_semanticComponentAnalyzer();
399
+ init_typeGeneratorFromMetadata();
400
+ init_typeGenerationPlugin();
372
401
  _require3 = createRequire3(
373
402
  typeof __require !== "undefined" ? typeof __filename !== "undefined" ? `file://${__filename}` : "file://unknown" : import.meta.url
374
403
  );
@@ -490,13 +519,13 @@ var init_internal = __esm({
490
519
  // packages/presentation/next/src/webpackLoader.ts
491
520
  init_esm_shims();
492
521
  init_internal();
493
- import path7 from "path";
522
+ import path8 from "path";
494
523
  import { z } from "zod";
495
524
 
496
525
  // packages/presentation/next/src/staticCssWebpackPlugin.ts
497
526
  init_esm_shims();
498
- import fs5 from "fs";
499
- import path6 from "path";
527
+ import fs6 from "fs";
528
+ import path7 from "path";
500
529
  var _fileStaticCssMap = /* @__PURE__ */ new Map();
501
530
  function setFileStaticCss(filepath, css) {
502
531
  if (css && css.trim()) {
@@ -518,7 +547,7 @@ var WebpackLoaderOptionsSchema = z.object({
518
547
  preserveImports: z.boolean().optional(),
519
548
  safelistPath: z.string().optional()
520
549
  });
521
- var isNextBuildArtifact = (filepath) => filepath.includes(`${path7.sep}.next${path7.sep}`);
550
+ var isNextBuildArtifact = (filepath) => filepath.includes(`${path8.sep}.next${path8.sep}`);
522
551
  function webpackLoader(source) {
523
552
  const callback = this.async?.();
524
553
  if (!callback) {
@@ -559,7 +588,7 @@ function webpackLoader(source) {
559
588
  const rsc = output.rsc;
560
589
  const engine = output.engine ?? "js";
561
590
  const env = rsc?.isServer ? "server" : "client";
562
- const name = path7.basename(filepath);
591
+ const name = path8.basename(filepath);
563
592
  process.stdout.write(
564
593
  `[tailwind-styled/webpack] ${name} -> ${output.classes.length} classes (${env}) [${engine}]
565
594
  `