tailwind-styled-v4 5.1.21 → 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 (62) 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.d.mts +28 -16
  7. package/dist/cli.d.ts +28 -16
  8. package/dist/cli.js +392 -77
  9. package/dist/cli.js.map +1 -1
  10. package/dist/cli.mjs +388 -75
  11. package/dist/cli.mjs.map +1 -1
  12. package/dist/compiler.d.mts +195 -1
  13. package/dist/compiler.d.ts +195 -1
  14. package/dist/compiler.js +356 -12
  15. package/dist/compiler.js.map +1 -1
  16. package/dist/compiler.mjs +340 -10
  17. package/dist/compiler.mjs.map +1 -1
  18. package/dist/engine.js +194 -164
  19. package/dist/engine.js.map +1 -1
  20. package/dist/engine.mjs +184 -155
  21. package/dist/engine.mjs.map +1 -1
  22. package/dist/index.browser.mjs +144 -14
  23. package/dist/index.browser.mjs.map +1 -1
  24. package/dist/index.d.mts +45 -4
  25. package/dist/index.d.ts +45 -4
  26. package/dist/index.js +174 -9
  27. package/dist/index.js.map +1 -1
  28. package/dist/index.mjs +185 -21
  29. package/dist/index.mjs.map +1 -1
  30. package/dist/next.js +489 -158
  31. package/dist/next.js.map +1 -1
  32. package/dist/next.mjs +483 -153
  33. package/dist/next.mjs.map +1 -1
  34. package/dist/runtime-css.js +1 -1
  35. package/dist/runtime-css.js.map +1 -1
  36. package/dist/runtime-css.mjs +1 -1
  37. package/dist/runtime-css.mjs.map +1 -1
  38. package/dist/runtime.js +17 -0
  39. package/dist/runtime.js.map +1 -1
  40. package/dist/runtime.mjs +23 -0
  41. package/dist/runtime.mjs.map +1 -1
  42. package/dist/shared.js +91 -61
  43. package/dist/shared.js.map +1 -1
  44. package/dist/shared.mjs +85 -56
  45. package/dist/shared.mjs.map +1 -1
  46. package/dist/turbopackLoader.js +79 -49
  47. package/dist/turbopackLoader.js.map +1 -1
  48. package/dist/turbopackLoader.mjs +76 -47
  49. package/dist/turbopackLoader.mjs.map +1 -1
  50. package/dist/tw.js +390 -77
  51. package/dist/tw.js.map +1 -1
  52. package/dist/tw.mjs +387 -75
  53. package/dist/tw.mjs.map +1 -1
  54. package/dist/vite.js +157 -127
  55. package/dist/vite.js.map +1 -1
  56. package/dist/vite.mjs +150 -121
  57. package/dist/vite.mjs.map +1 -1
  58. package/dist/webpackLoader.js +39 -9
  59. package/dist/webpackLoader.js.map +1 -1
  60. package/dist/webpackLoader.mjs +36 -7
  61. package/dist/webpackLoader.mjs.map +1 -1
  62. package/package.json +1 -1
@@ -186,7 +186,7 @@ var init_nativeBridge = __esm({
186
186
  "use strict";
187
187
  init_cjs_shims();
188
188
  init_src();
189
- _loadNative = (path7) => require(path7);
189
+ _loadNative = (path8) => require(path8);
190
190
  log = (...args) => {
191
191
  if (process.env.DEBUG?.includes("compiler:native")) {
192
192
  console.log("[compiler:native]", ...args);
@@ -339,6 +339,33 @@ var init_routeGraph = __esm({
339
339
  }
340
340
  });
341
341
 
342
+ // packages/domain/compiler/src/semanticComponentAnalyzer.ts
343
+ var init_semanticComponentAnalyzer = __esm({
344
+ "packages/domain/compiler/src/semanticComponentAnalyzer.ts"() {
345
+ "use strict";
346
+ init_cjs_shims();
347
+ }
348
+ });
349
+
350
+ // packages/domain/compiler/src/typeGeneratorFromMetadata.ts
351
+ var init_typeGeneratorFromMetadata = __esm({
352
+ "packages/domain/compiler/src/typeGeneratorFromMetadata.ts"() {
353
+ "use strict";
354
+ init_cjs_shims();
355
+ }
356
+ });
357
+
358
+ // packages/domain/compiler/src/typeGenerationPlugin.ts
359
+ var import_node_fs3, import_node_path3;
360
+ var init_typeGenerationPlugin = __esm({
361
+ "packages/domain/compiler/src/typeGenerationPlugin.ts"() {
362
+ "use strict";
363
+ init_cjs_shims();
364
+ import_node_fs3 = __toESM(require("fs"), 1);
365
+ import_node_path3 = __toESM(require("path"), 1);
366
+ }
367
+ });
368
+
342
369
  // packages/domain/compiler/src/index.ts
343
370
  function _layoutClassesToCss(classes) {
344
371
  const native = getNativeBridge();
@@ -374,13 +401,13 @@ function extractContainerCssFromSource(source) {
374
401
  }
375
402
  return rules.join("\n");
376
403
  }
377
- var import_node_fs3, import_node_path3, import_node_module3, _require3, transformSource, _CONTAINER_BREAKPOINTS, runLoaderTransform, shouldSkipFile, _fileClassesMap, registerFileClasses, extractTwStateConfigs, generateStaticStateCss, extractAndGenerateStateCss;
404
+ var import_node_fs4, import_node_path4, import_node_module3, _require3, transformSource, _CONTAINER_BREAKPOINTS, runLoaderTransform, shouldSkipFile, _fileClassesMap, registerFileClasses, extractTwStateConfigs, generateStaticStateCss, extractAndGenerateStateCss;
378
405
  var init_src2 = __esm({
379
406
  "packages/domain/compiler/src/index.ts"() {
380
407
  "use strict";
381
408
  init_cjs_shims();
382
- import_node_fs3 = __toESM(require("fs"), 1);
383
- import_node_path3 = __toESM(require("path"), 1);
409
+ import_node_fs4 = __toESM(require("fs"), 1);
410
+ import_node_path4 = __toESM(require("path"), 1);
384
411
  import_node_module3 = require("module");
385
412
  init_nativeBridge();
386
413
  init_compiler();
@@ -390,6 +417,9 @@ var init_src2 = __esm({
390
417
  init_redis();
391
418
  init_watch();
392
419
  init_routeGraph();
420
+ init_semanticComponentAnalyzer();
421
+ init_typeGeneratorFromMetadata();
422
+ init_typeGenerationPlugin();
393
423
  _require3 = (0, import_node_module3.createRequire)(
394
424
  typeof require !== "undefined" ? typeof __filename !== "undefined" ? `file://${__filename}` : "file://unknown" : importMetaUrl
395
425
  );
@@ -516,13 +546,13 @@ __export(webpackLoader_exports, {
516
546
  module.exports = __toCommonJS(webpackLoader_exports);
517
547
  init_cjs_shims();
518
548
  init_internal();
519
- var import_node_path5 = __toESM(require("path"), 1);
549
+ var import_node_path6 = __toESM(require("path"), 1);
520
550
  var import_zod = require("zod");
521
551
 
522
552
  // packages/presentation/next/src/staticCssWebpackPlugin.ts
523
553
  init_cjs_shims();
524
- var import_node_fs4 = __toESM(require("fs"), 1);
525
- var import_node_path4 = __toESM(require("path"), 1);
554
+ var import_node_fs5 = __toESM(require("fs"), 1);
555
+ var import_node_path5 = __toESM(require("path"), 1);
526
556
  var _fileStaticCssMap = /* @__PURE__ */ new Map();
527
557
  function setFileStaticCss(filepath, css) {
528
558
  if (css && css.trim()) {
@@ -544,7 +574,7 @@ var WebpackLoaderOptionsSchema = import_zod.z.object({
544
574
  preserveImports: import_zod.z.boolean().optional(),
545
575
  safelistPath: import_zod.z.string().optional()
546
576
  });
547
- var isNextBuildArtifact = (filepath) => filepath.includes(`${import_node_path5.default.sep}.next${import_node_path5.default.sep}`);
577
+ var isNextBuildArtifact = (filepath) => filepath.includes(`${import_node_path6.default.sep}.next${import_node_path6.default.sep}`);
548
578
  function webpackLoader(source) {
549
579
  const callback = this.async?.();
550
580
  if (!callback) {
@@ -585,7 +615,7 @@ function webpackLoader(source) {
585
615
  const rsc = output.rsc;
586
616
  const engine = output.engine ?? "js";
587
617
  const env = rsc?.isServer ? "server" : "client";
588
- const name = import_node_path5.default.basename(filepath);
618
+ const name = import_node_path6.default.basename(filepath);
589
619
  process.stdout.write(
590
620
  `[tailwind-styled/webpack] ${name} -> ${output.classes.length} classes (${env}) [${engine}]
591
621
  `