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.
- package/README.md +216 -0
- package/dist/atomic.js +34 -4
- package/dist/atomic.js.map +1 -1
- package/dist/atomic.mjs +31 -2
- package/dist/atomic.mjs.map +1 -1
- package/dist/cli.js +132 -97
- package/dist/cli.js.map +1 -1
- package/dist/cli.mjs +129 -95
- package/dist/cli.mjs.map +1 -1
- package/dist/compiler.d.mts +195 -1
- package/dist/compiler.d.ts +195 -1
- package/dist/compiler.js +356 -12
- package/dist/compiler.js.map +1 -1
- package/dist/compiler.mjs +340 -10
- package/dist/compiler.mjs.map +1 -1
- package/dist/engine.js +194 -164
- package/dist/engine.js.map +1 -1
- package/dist/engine.mjs +184 -155
- package/dist/engine.mjs.map +1 -1
- package/dist/index.browser.mjs +144 -14
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.d.mts +45 -4
- package/dist/index.d.ts +45 -4
- package/dist/index.js +174 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +185 -21
- package/dist/index.mjs.map +1 -1
- package/dist/next.js +489 -158
- package/dist/next.js.map +1 -1
- package/dist/next.mjs +483 -153
- package/dist/next.mjs.map +1 -1
- package/dist/runtime-css.js +1 -1
- package/dist/runtime-css.js.map +1 -1
- package/dist/runtime-css.mjs +1 -1
- package/dist/runtime-css.mjs.map +1 -1
- package/dist/runtime.js +17 -0
- package/dist/runtime.js.map +1 -1
- package/dist/runtime.mjs +23 -0
- package/dist/runtime.mjs.map +1 -1
- package/dist/shared.js +91 -61
- package/dist/shared.js.map +1 -1
- package/dist/shared.mjs +85 -56
- package/dist/shared.mjs.map +1 -1
- package/dist/turbopackLoader.js +79 -49
- package/dist/turbopackLoader.js.map +1 -1
- package/dist/turbopackLoader.mjs +76 -47
- package/dist/turbopackLoader.mjs.map +1 -1
- package/dist/tw.js +132 -97
- package/dist/tw.js.map +1 -1
- package/dist/tw.mjs +129 -95
- package/dist/tw.mjs.map +1 -1
- package/dist/vite.js +157 -127
- package/dist/vite.js.map +1 -1
- package/dist/vite.mjs +150 -121
- package/dist/vite.mjs.map +1 -1
- package/dist/webpackLoader.js +39 -9
- package/dist/webpackLoader.js.map +1 -1
- package/dist/webpackLoader.mjs +36 -7
- package/dist/webpackLoader.mjs.map +1 -1
- package/package.json +1 -1
- package/CHANGELOG.md +0 -182
package/dist/webpackLoader.js
CHANGED
|
@@ -186,7 +186,7 @@ var init_nativeBridge = __esm({
|
|
|
186
186
|
"use strict";
|
|
187
187
|
init_cjs_shims();
|
|
188
188
|
init_src();
|
|
189
|
-
_loadNative = (
|
|
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
|
|
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
|
-
|
|
383
|
-
|
|
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
|
|
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
|
|
525
|
-
var
|
|
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(`${
|
|
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 =
|
|
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
|
`
|