tailwind-styled-v4 5.0.36 → 5.0.38
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/dist/analyzer.d.mts +152 -5
- package/dist/analyzer.d.ts +152 -5
- package/dist/analyzer.js +213 -161
- package/dist/analyzer.js.map +1 -1
- package/dist/analyzer.mjs +118 -82
- package/dist/analyzer.mjs.map +1 -1
- package/dist/animate.d.mts +30 -3
- package/dist/animate.d.ts +30 -3
- package/dist/animate.js +131 -87
- package/dist/animate.js.map +1 -1
- package/dist/animate.mjs +28 -14
- package/dist/animate.mjs.map +1 -1
- package/dist/atomic.js +105 -68
- package/dist/atomic.js.map +1 -1
- package/dist/atomic.mjs +40 -13
- package/dist/atomic.mjs.map +1 -1
- package/dist/cli.js +577 -426
- package/dist/cli.js.map +1 -1
- package/dist/cli.mjs +466 -304
- package/dist/cli.mjs.map +1 -1
- package/dist/compiler.d.mts +5 -0
- package/dist/compiler.d.ts +5 -0
- package/dist/compiler.js +826 -508
- package/dist/compiler.js.map +1 -1
- package/dist/compiler.mjs +287 -29
- package/dist/compiler.mjs.map +1 -1
- package/dist/dashboard.js +71 -41
- package/dist/dashboard.js.map +1 -1
- package/dist/dashboard.mjs +12 -6
- package/dist/dashboard.mjs.map +1 -1
- package/dist/devtools.d.mts +88 -2
- package/dist/devtools.d.ts +88 -2
- package/dist/devtools.js +333 -289
- package/dist/devtools.js.map +1 -1
- package/dist/devtools.mjs +26 -11
- package/dist/devtools.mjs.map +1 -1
- package/dist/engine.d.mts +557 -6
- package/dist/engine.d.ts +557 -6
- package/dist/engine.js +679 -502
- package/dist/engine.js.map +1 -1
- package/dist/engine.mjs +467 -307
- package/dist/engine.mjs.map +1 -1
- package/dist/index.d.mts +180 -127
- package/dist/index.d.ts +180 -127
- package/dist/index.js +1329 -7441
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1266 -7385
- package/dist/index.mjs.map +1 -1
- package/dist/next.js +318 -243
- package/dist/next.js.map +1 -1
- package/dist/next.mjs +256 -181
- package/dist/next.mjs.map +1 -1
- package/dist/plugin-api.d.mts +4 -2
- package/dist/plugin-api.d.ts +4 -2
- package/dist/plugin-api.js +93 -49
- package/dist/plugin-api.js.map +1 -1
- package/dist/plugin-api.mjs +26 -6
- package/dist/plugin-api.mjs.map +1 -1
- package/dist/plugin-registry.js +103 -62
- package/dist/plugin-registry.js.map +1 -1
- package/dist/plugin-registry.mjs +53 -35
- package/dist/plugin-registry.mjs.map +1 -1
- package/dist/plugin.d.mts +165 -5
- package/dist/plugin.d.ts +165 -5
- package/dist/plugin.js +115 -50
- package/dist/plugin.js.map +1 -1
- package/dist/plugin.mjs +44 -6
- package/dist/plugin.mjs.map +1 -1
- package/dist/preset.js +47 -15
- package/dist/preset.js.map +1 -1
- package/dist/preset.mjs +13 -5
- package/dist/preset.mjs.map +1 -1
- package/dist/rspack.js +82 -50
- package/dist/rspack.js.map +1 -1
- package/dist/rspack.mjs +20 -12
- package/dist/rspack.mjs.map +1 -1
- package/dist/runtime-css.js +62 -24
- package/dist/runtime-css.js.map +1 -1
- package/dist/runtime-css.mjs +15 -7
- package/dist/runtime-css.mjs.map +1 -1
- package/dist/runtime.d.mts +38 -3
- package/dist/runtime.d.ts +38 -3
- package/dist/runtime.js +97 -44
- package/dist/runtime.js.map +1 -1
- package/dist/runtime.mjs +31 -8
- package/dist/runtime.mjs.map +1 -1
- package/dist/scanner.d.mts +58 -4
- package/dist/scanner.d.ts +58 -4
- package/dist/scanner.js +163 -120
- package/dist/scanner.js.map +1 -1
- package/dist/scanner.mjs +67 -39
- package/dist/scanner.mjs.map +1 -1
- package/dist/shared.d.mts +185 -3
- package/dist/shared.d.ts +185 -3
- package/dist/shared.js +441 -295
- package/dist/shared.js.map +1 -1
- package/dist/shared.mjs +253 -122
- package/dist/shared.mjs.map +1 -1
- package/dist/storybook-addon.d.mts +2 -2
- package/dist/storybook-addon.d.ts +2 -2
- package/dist/storybook-addon.js +39 -10
- package/dist/storybook-addon.js.map +1 -1
- package/dist/storybook-addon.mjs +8 -3
- package/dist/storybook-addon.mjs.map +1 -1
- package/dist/svelte.d.mts +2 -1
- package/dist/svelte.d.ts +2 -1
- package/dist/svelte.js +88 -64
- package/dist/svelte.js.map +1 -1
- package/dist/svelte.mjs +28 -13
- package/dist/svelte.mjs.map +1 -1
- package/dist/syntax.js +68 -37
- package/dist/syntax.js.map +1 -1
- package/dist/syntax.mjs +8 -7
- package/dist/syntax.mjs.map +1 -1
- package/dist/testing.js +55 -18
- package/dist/testing.js.map +1 -1
- package/dist/testing.mjs +16 -3
- package/dist/testing.mjs.map +1 -1
- package/dist/theme.d.mts +38 -3
- package/dist/theme.d.ts +38 -3
- package/dist/theme.js +131 -74
- package/dist/theme.js.map +1 -1
- package/dist/theme.mjs +42 -13
- package/dist/theme.mjs.map +1 -1
- package/dist/turbopackLoader.js +150 -116
- package/dist/turbopackLoader.js.map +1 -1
- package/dist/turbopackLoader.mjs +124 -81
- package/dist/turbopackLoader.mjs.map +1 -1
- package/dist/tw.js +560 -421
- package/dist/tw.js.map +1 -1
- package/dist/tw.mjs +460 -302
- package/dist/tw.mjs.map +1 -1
- package/dist/vite.js +561 -446
- package/dist/vite.js.map +1 -1
- package/dist/vite.mjs +433 -321
- package/dist/vite.mjs.map +1 -1
- package/dist/vue.d.mts +4 -1
- package/dist/vue.d.ts +4 -1
- package/dist/vue.js +95 -70
- package/dist/vue.js.map +1 -1
- package/dist/vue.mjs +30 -14
- package/dist/vue.mjs.map +1 -1
- package/dist/webpackLoader.js +110 -78
- package/dist/webpackLoader.js.map +1 -1
- package/dist/webpackLoader.mjs +45 -17
- package/dist/webpackLoader.mjs.map +1 -1
- package/native/tailwind-styled-native.linux-x64-gnu.node +0 -0
- package/native/tailwind-styled-native.node +0 -0
- package/package.json +3 -1
- package/dist/analyzeWorkspace-B1_XRfdl.d.ts +0 -134
- package/dist/analyzeWorkspace-hYfu4Hg3.d.mts +0 -134
- package/dist/index-DQI6O24n.d.mts +0 -464
- package/dist/index-NDINUhLN.d.mts +0 -90
- package/dist/index-NDINUhLN.d.ts +0 -90
- package/dist/index-UkYbyBkR.d.ts +0 -464
- package/dist/liveTokenEngine-CN9ian1R.d.ts +0 -38
- package/dist/liveTokenEngine-DKoWRtqH.d.mts +0 -38
- package/dist/schemas-DR-SLxZZ.d.mts +0 -59
- package/dist/schemas-DR-SLxZZ.d.ts +0 -59
- package/dist/trace-Dz4vmZdy.d.mts +0 -96
- package/dist/trace-Dz4vmZdy.d.ts +0 -96
- package/dist/types-DXr2PmGP.d.mts +0 -31
- package/dist/types-DXr2PmGP.d.ts +0 -31
package/dist/webpackLoader.js
CHANGED
|
@@ -1,45 +1,37 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var module$1 = require('module');
|
|
4
|
-
var fs = require('fs');
|
|
5
|
-
var path = require('path');
|
|
6
|
-
require('crypto');
|
|
7
|
-
var url = require('url');
|
|
8
|
-
var zod = require('zod');
|
|
9
|
-
|
|
10
|
-
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
|
|
11
|
-
function _interopNamespace(e) {
|
|
12
|
-
if (e && e.__esModule) return e;
|
|
13
|
-
var n = Object.create(null);
|
|
14
|
-
if (e) {
|
|
15
|
-
Object.keys(e).forEach(function (k) {
|
|
16
|
-
if (k !== 'default') {
|
|
17
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
18
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
19
|
-
enumerable: true,
|
|
20
|
-
get: function () { return e[k]; }
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
n.default = e;
|
|
26
|
-
return Object.freeze(n);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
var fs__namespace = /*#__PURE__*/_interopNamespace(fs);
|
|
30
|
-
var path__namespace = /*#__PURE__*/_interopNamespace(path);
|
|
31
|
-
|
|
32
1
|
/* tailwind-styled-v4 v5.0.4 | MIT | https://github.com/dictionar32/tailwind-styled-v4 */
|
|
2
|
+
"use strict";
|
|
3
|
+
var __create = Object.create;
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
33
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
34
|
-
var
|
|
35
|
-
|
|
36
|
-
}) : x)(function(x) {
|
|
37
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
38
|
-
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
39
|
-
});
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
40
9
|
var __esm = (fn, res) => function __init() {
|
|
41
10
|
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
42
11
|
};
|
|
12
|
+
var __export = (target, all) => {
|
|
13
|
+
for (var name in all)
|
|
14
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
15
|
+
};
|
|
16
|
+
var __copyProps = (to, from, except, desc) => {
|
|
17
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
18
|
+
for (let key of __getOwnPropNames(from))
|
|
19
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
20
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
21
|
+
}
|
|
22
|
+
return to;
|
|
23
|
+
};
|
|
24
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
25
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
26
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
27
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
28
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
29
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
30
|
+
mod
|
|
31
|
+
));
|
|
32
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
33
|
+
|
|
34
|
+
// packages/domain/shared/src/native-resolution.ts
|
|
43
35
|
function platformKey() {
|
|
44
36
|
if (isBrowser) return "browser";
|
|
45
37
|
return `${process.platform}-${process.arch}`;
|
|
@@ -55,7 +47,7 @@ function resolveNativeBinary(runtimeDir) {
|
|
|
55
47
|
}
|
|
56
48
|
const envPath = process.env.TW_NATIVE_PATH?.trim();
|
|
57
49
|
if (envPath) {
|
|
58
|
-
if (
|
|
50
|
+
if (fs.existsSync(envPath)) {
|
|
59
51
|
return { path: envPath, source: "env", platform, tried };
|
|
60
52
|
}
|
|
61
53
|
tried.push(`env:${envPath} (not found)`);
|
|
@@ -64,7 +56,7 @@ function resolveNativeBinary(runtimeDir) {
|
|
|
64
56
|
for (const pkg of prebuiltPkgs) {
|
|
65
57
|
try {
|
|
66
58
|
const candidate = _require.resolve(`${pkg}/tailwind_styled_parser.node`);
|
|
67
|
-
if (
|
|
59
|
+
if (fs.existsSync(candidate)) {
|
|
68
60
|
return { path: candidate, source: "prebuilt", platform, tried };
|
|
69
61
|
}
|
|
70
62
|
tried.push(`prebuilt:${pkg} (resolved but missing)`);
|
|
@@ -75,13 +67,13 @@ function resolveNativeBinary(runtimeDir) {
|
|
|
75
67
|
const napiPlatform = platform === "linux-x64" ? "linux-x64-gnu" : platform === "linux-arm64" ? "linux-arm64-gnu" : platform;
|
|
76
68
|
const BINARY_NAMES_SELF = ["tailwind-styled-native", "tailwind_styled_parser"];
|
|
77
69
|
if (runtimeDir) {
|
|
78
|
-
for (const depth of ["..",
|
|
79
|
-
const pkgRoot =
|
|
70
|
+
for (const depth of ["..", path.join("..", ".."), path.join("..", "..", "..")]) {
|
|
71
|
+
const pkgRoot = path.resolve(runtimeDir, depth);
|
|
80
72
|
for (const bin of BINARY_NAMES_SELF) {
|
|
81
73
|
for (const suffix of ["", `.${platform}`, `.${napiPlatform}`]) {
|
|
82
|
-
const candidate =
|
|
74
|
+
const candidate = path.resolve(pkgRoot, "native", `${bin}${suffix}.node`);
|
|
83
75
|
tried.push(`self-bundled:${candidate}`);
|
|
84
|
-
if (
|
|
76
|
+
if (fs.existsSync(candidate)) {
|
|
85
77
|
return { path: candidate, source: "prebuilt", platform, tried };
|
|
86
78
|
}
|
|
87
79
|
}
|
|
@@ -93,39 +85,44 @@ function resolveNativeBinary(runtimeDir) {
|
|
|
93
85
|
const BINARY_NAMES = ["tailwind-styled-native", "tailwind_styled_parser"];
|
|
94
86
|
const localCandidates = [];
|
|
95
87
|
for (const bin of BINARY_NAMES) {
|
|
96
|
-
localCandidates.push(
|
|
97
|
-
localCandidates.push(
|
|
98
|
-
localCandidates.push(
|
|
99
|
-
localCandidates.push(
|
|
88
|
+
localCandidates.push(path.resolve(base, `${bin}.node`));
|
|
89
|
+
localCandidates.push(path.resolve(base, "..", `${bin}.node`));
|
|
90
|
+
localCandidates.push(path.resolve(base, `${bin}.${platform}.node`));
|
|
91
|
+
localCandidates.push(path.resolve(base, `${bin}.${napiPlatform}.node`));
|
|
100
92
|
}
|
|
101
93
|
for (const startDir of [cwd, base]) {
|
|
102
94
|
let dir = startDir;
|
|
103
95
|
for (let i = 0; i < 6; i++) {
|
|
104
|
-
const nativeDir =
|
|
96
|
+
const nativeDir = path.resolve(dir, "native");
|
|
105
97
|
for (const bin of BINARY_NAMES) {
|
|
106
|
-
localCandidates.push(
|
|
107
|
-
localCandidates.push(
|
|
108
|
-
localCandidates.push(
|
|
109
|
-
localCandidates.push(
|
|
98
|
+
localCandidates.push(path.resolve(nativeDir, `${bin}.node`));
|
|
99
|
+
localCandidates.push(path.resolve(nativeDir, `${bin}.${platform}.node`));
|
|
100
|
+
localCandidates.push(path.resolve(nativeDir, `${bin}.${napiPlatform}.node`));
|
|
101
|
+
localCandidates.push(path.resolve(nativeDir, "target", "release", `${bin}.node`));
|
|
110
102
|
}
|
|
111
|
-
const parent =
|
|
103
|
+
const parent = path.resolve(dir, "..");
|
|
112
104
|
if (parent === dir) break;
|
|
113
105
|
dir = parent;
|
|
114
106
|
}
|
|
115
107
|
}
|
|
116
108
|
for (const candidate of localCandidates) {
|
|
117
109
|
tried.push(`local:${candidate}`);
|
|
118
|
-
if (
|
|
110
|
+
if (fs.existsSync(candidate)) {
|
|
119
111
|
return { path: candidate, source: "local", platform, tried };
|
|
120
112
|
}
|
|
121
113
|
}
|
|
122
114
|
return { path: null, source: "not-found", platform, tried };
|
|
123
115
|
}
|
|
124
|
-
var isBrowser, _require, PLATFORM_MAP;
|
|
116
|
+
var import_node_module, fs, path, import_meta, isBrowser, _require, PLATFORM_MAP;
|
|
125
117
|
var init_native_resolution = __esm({
|
|
126
118
|
"packages/domain/shared/src/native-resolution.ts"() {
|
|
119
|
+
"use strict";
|
|
120
|
+
import_node_module = require("module");
|
|
121
|
+
fs = __toESM(require("fs"));
|
|
122
|
+
path = __toESM(require("path"));
|
|
123
|
+
import_meta = {};
|
|
127
124
|
isBrowser = typeof window !== "undefined" || typeof document !== "undefined";
|
|
128
|
-
_require = typeof
|
|
125
|
+
_require = typeof require !== "undefined" ? require : (0, import_node_module.createRequire)(import_meta.url);
|
|
129
126
|
PLATFORM_MAP = {
|
|
130
127
|
"linux-x64": ["@tailwind-styled/native-linux-x64-gnu", "@tailwind-styled/native-linux-x64"],
|
|
131
128
|
"linux-arm64": ["@tailwind-styled/native-linux-arm64-gnu", "@tailwind-styled/native-linux-arm64"],
|
|
@@ -136,26 +133,39 @@ var init_native_resolution = __esm({
|
|
|
136
133
|
};
|
|
137
134
|
}
|
|
138
135
|
});
|
|
136
|
+
|
|
137
|
+
// packages/domain/shared/src/index.ts
|
|
139
138
|
function resolveRuntimeDir(dir, importMetaUrl) {
|
|
139
|
+
if (dir) return import_node_path.default.resolve(dir);
|
|
140
140
|
try {
|
|
141
|
-
return
|
|
141
|
+
return import_node_path.default.dirname((0, import_node_url.fileURLToPath)(importMetaUrl));
|
|
142
142
|
} catch {
|
|
143
143
|
return process.cwd();
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
|
+
var import_node_crypto, import_node_fs, import_node_path, import_node_url, import_node_module2, import_meta2, _require2;
|
|
146
147
|
var init_src = __esm({
|
|
147
148
|
"packages/domain/shared/src/index.ts"() {
|
|
149
|
+
"use strict";
|
|
150
|
+
import_node_crypto = require("crypto");
|
|
151
|
+
import_node_fs = __toESM(require("fs"));
|
|
152
|
+
import_node_path = __toESM(require("path"));
|
|
153
|
+
import_node_url = require("url");
|
|
154
|
+
import_node_module2 = require("module");
|
|
148
155
|
init_native_resolution();
|
|
149
|
-
|
|
156
|
+
import_meta2 = {};
|
|
157
|
+
_require2 = (0, import_node_module2.createRequire)(import_meta2.url);
|
|
150
158
|
}
|
|
151
159
|
});
|
|
152
160
|
|
|
153
161
|
// packages/domain/compiler/src/nativeBridge.ts
|
|
154
|
-
var _loadNative, log, NATIVE_UNAVAILABLE_MESSAGE, nativeBridge, bridgeLoadAttempted, bridgeLoadError, isValidNativeBridge, getNativeBridge;
|
|
162
|
+
var import_meta3, _loadNative, log, NATIVE_UNAVAILABLE_MESSAGE, nativeBridge, bridgeLoadAttempted, bridgeLoadError, isValidNativeBridge, getNativeBridge;
|
|
155
163
|
var init_nativeBridge = __esm({
|
|
156
164
|
"packages/domain/compiler/src/nativeBridge.ts"() {
|
|
165
|
+
"use strict";
|
|
157
166
|
init_src();
|
|
158
|
-
|
|
167
|
+
import_meta3 = {};
|
|
168
|
+
_loadNative = (path6) => require(path6);
|
|
159
169
|
log = (...args) => {
|
|
160
170
|
if (process.env.DEBUG?.includes("compiler:native")) {
|
|
161
171
|
console.log("[compiler:native]", ...args);
|
|
@@ -181,7 +191,7 @@ var init_nativeBridge = __esm({
|
|
|
181
191
|
}
|
|
182
192
|
bridgeLoadAttempted = true;
|
|
183
193
|
try {
|
|
184
|
-
const runtimeDir = resolveRuntimeDir(void 0,
|
|
194
|
+
const runtimeDir = resolveRuntimeDir(void 0, import_meta3.url);
|
|
185
195
|
const result = resolveNativeBinary(runtimeDir);
|
|
186
196
|
if (result.path && result.path.endsWith(".node")) {
|
|
187
197
|
try {
|
|
@@ -252,38 +262,46 @@ Tried paths: ${result.tried.join("\n")}`);
|
|
|
252
262
|
// packages/domain/compiler/src/compiler/index.ts
|
|
253
263
|
var init_compiler = __esm({
|
|
254
264
|
"packages/domain/compiler/src/compiler/index.ts"() {
|
|
265
|
+
"use strict";
|
|
255
266
|
}
|
|
256
267
|
});
|
|
257
268
|
|
|
258
269
|
// packages/domain/compiler/src/parser/index.ts
|
|
259
270
|
var init_parser = __esm({
|
|
260
271
|
"packages/domain/compiler/src/parser/index.ts"() {
|
|
272
|
+
"use strict";
|
|
261
273
|
}
|
|
262
274
|
});
|
|
263
275
|
|
|
264
276
|
// packages/domain/compiler/src/analyzer/index.ts
|
|
265
277
|
var init_analyzer = __esm({
|
|
266
278
|
"packages/domain/compiler/src/analyzer/index.ts"() {
|
|
279
|
+
"use strict";
|
|
267
280
|
}
|
|
268
281
|
});
|
|
269
282
|
|
|
270
283
|
// packages/domain/compiler/src/cache/index.ts
|
|
271
284
|
var init_cache = __esm({
|
|
272
285
|
"packages/domain/compiler/src/cache/index.ts"() {
|
|
286
|
+
"use strict";
|
|
273
287
|
}
|
|
274
288
|
});
|
|
275
289
|
|
|
276
290
|
// packages/domain/compiler/src/redis/index.ts
|
|
277
291
|
var init_redis = __esm({
|
|
278
292
|
"packages/domain/compiler/src/redis/index.ts"() {
|
|
293
|
+
"use strict";
|
|
279
294
|
}
|
|
280
295
|
});
|
|
281
296
|
|
|
282
297
|
// packages/domain/compiler/src/watch/index.ts
|
|
283
298
|
var init_watch = __esm({
|
|
284
299
|
"packages/domain/compiler/src/watch/index.ts"() {
|
|
300
|
+
"use strict";
|
|
285
301
|
}
|
|
286
302
|
});
|
|
303
|
+
|
|
304
|
+
// packages/domain/compiler/src/index.ts
|
|
287
305
|
function _layoutClassesToCss(classes) {
|
|
288
306
|
const native = getNativeBridge();
|
|
289
307
|
if (!native?.layoutClassesToCss) {
|
|
@@ -318,9 +336,13 @@ function extractContainerCssFromSource(source) {
|
|
|
318
336
|
}
|
|
319
337
|
return rules.join("\n");
|
|
320
338
|
}
|
|
321
|
-
var transformSource, _CONTAINER_BREAKPOINTS, runLoaderTransform, shouldSkipFile, registerFileClasses, extractTwStateConfigs, generateStaticStateCss, extractAndGenerateStateCss;
|
|
339
|
+
var import_node_fs2, import_node_path2, import_node_module3, import_meta4, _require3, transformSource, _CONTAINER_BREAKPOINTS, runLoaderTransform, shouldSkipFile, registerFileClasses, extractTwStateConfigs, generateStaticStateCss, extractAndGenerateStateCss;
|
|
322
340
|
var init_src2 = __esm({
|
|
323
341
|
"packages/domain/compiler/src/index.ts"() {
|
|
342
|
+
"use strict";
|
|
343
|
+
import_node_fs2 = __toESM(require("fs"), 1);
|
|
344
|
+
import_node_path2 = __toESM(require("path"), 1);
|
|
345
|
+
import_node_module3 = require("module");
|
|
324
346
|
init_nativeBridge();
|
|
325
347
|
init_compiler();
|
|
326
348
|
init_parser();
|
|
@@ -328,7 +350,8 @@ var init_src2 = __esm({
|
|
|
328
350
|
init_cache();
|
|
329
351
|
init_redis();
|
|
330
352
|
init_watch();
|
|
331
|
-
|
|
353
|
+
import_meta4 = {};
|
|
354
|
+
_require3 = (0, import_node_module3.createRequire)(import_meta4.url);
|
|
332
355
|
transformSource = (source, opts) => {
|
|
333
356
|
const native = getNativeBridge();
|
|
334
357
|
if (!native?.transformSource) {
|
|
@@ -426,6 +449,7 @@ var init_src2 = __esm({
|
|
|
426
449
|
// packages/domain/compiler/src/internal.ts
|
|
427
450
|
var init_internal = __esm({
|
|
428
451
|
"packages/domain/compiler/src/internal.ts"() {
|
|
452
|
+
"use strict";
|
|
429
453
|
init_src2();
|
|
430
454
|
init_compiler();
|
|
431
455
|
init_parser();
|
|
@@ -437,7 +461,18 @@ var init_internal = __esm({
|
|
|
437
461
|
});
|
|
438
462
|
|
|
439
463
|
// packages/presentation/next/src/webpackLoader.ts
|
|
464
|
+
var webpackLoader_exports = {};
|
|
465
|
+
__export(webpackLoader_exports, {
|
|
466
|
+
default: () => webpackLoader
|
|
467
|
+
});
|
|
468
|
+
module.exports = __toCommonJS(webpackLoader_exports);
|
|
440
469
|
init_internal();
|
|
470
|
+
var import_node_path4 = __toESM(require("path"), 1);
|
|
471
|
+
var import_zod = require("zod");
|
|
472
|
+
|
|
473
|
+
// packages/presentation/next/src/staticCssWebpackPlugin.ts
|
|
474
|
+
var import_node_fs3 = __toESM(require("fs"), 1);
|
|
475
|
+
var import_node_path3 = __toESM(require("path"), 1);
|
|
441
476
|
var _fileStaticCssMap = /* @__PURE__ */ new Map();
|
|
442
477
|
function setFileStaticCss(filepath, css) {
|
|
443
478
|
if (css && css.trim()) {
|
|
@@ -448,18 +483,18 @@ function setFileStaticCss(filepath, css) {
|
|
|
448
483
|
}
|
|
449
484
|
|
|
450
485
|
// packages/presentation/next/src/webpackLoader.ts
|
|
451
|
-
var WebpackLoaderOptionsSchema =
|
|
452
|
-
mode:
|
|
453
|
-
autoClientBoundary:
|
|
454
|
-
addDataAttr:
|
|
455
|
-
hoist:
|
|
456
|
-
routeCss:
|
|
457
|
-
incremental:
|
|
458
|
-
verbose:
|
|
459
|
-
preserveImports:
|
|
460
|
-
safelistPath:
|
|
486
|
+
var WebpackLoaderOptionsSchema = import_zod.z.object({
|
|
487
|
+
mode: import_zod.z.literal("zero-runtime").optional(),
|
|
488
|
+
autoClientBoundary: import_zod.z.boolean().optional(),
|
|
489
|
+
addDataAttr: import_zod.z.boolean().optional(),
|
|
490
|
+
hoist: import_zod.z.boolean().optional(),
|
|
491
|
+
routeCss: import_zod.z.boolean().optional(),
|
|
492
|
+
incremental: import_zod.z.boolean().optional(),
|
|
493
|
+
verbose: import_zod.z.boolean().optional(),
|
|
494
|
+
preserveImports: import_zod.z.boolean().optional(),
|
|
495
|
+
safelistPath: import_zod.z.string().optional()
|
|
461
496
|
});
|
|
462
|
-
var isNextBuildArtifact = (filepath) => filepath.includes(`${
|
|
497
|
+
var isNextBuildArtifact = (filepath) => filepath.includes(`${import_node_path4.default.sep}.next${import_node_path4.default.sep}`);
|
|
463
498
|
function webpackLoader(source) {
|
|
464
499
|
const callback = this.async?.();
|
|
465
500
|
if (!callback) {
|
|
@@ -500,7 +535,7 @@ function webpackLoader(source) {
|
|
|
500
535
|
const rsc = output.rsc;
|
|
501
536
|
const engine = output.engine ?? "js";
|
|
502
537
|
const env = rsc?.isServer ? "server" : "client";
|
|
503
|
-
const name =
|
|
538
|
+
const name = import_node_path4.default.basename(filepath);
|
|
504
539
|
process.stdout.write(
|
|
505
540
|
`[tailwind-styled/webpack] ${name} -> ${output.classes.length} classes (${env}) [${engine}]
|
|
506
541
|
`
|
|
@@ -519,7 +554,4 @@ function webpackLoader(source) {
|
|
|
519
554
|
callback(null, source);
|
|
520
555
|
}
|
|
521
556
|
}
|
|
522
|
-
|
|
523
|
-
module.exports = webpackLoader;
|
|
524
|
-
//# sourceMappingURL=webpackLoader.js.map
|
|
525
557
|
//# sourceMappingURL=webpackLoader.js.map
|