tailwind-styled-v4 5.0.40 → 5.1.1
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.js +43 -16
- package/dist/analyzer.js.map +1 -1
- package/dist/analyzer.mjs +104 -72
- package/dist/analyzer.mjs.map +1 -1
- package/dist/animate.js +33 -7
- package/dist/animate.js.map +1 -1
- package/dist/animate.mjs +55 -22
- package/dist/animate.mjs.map +1 -1
- package/dist/atomic.js +39 -10
- package/dist/atomic.js.map +1 -1
- package/dist/atomic.mjs +56 -23
- package/dist/atomic.mjs.map +1 -1
- package/dist/cli.js +222 -38
- package/dist/cli.js.map +1 -1
- package/dist/cli.mjs +321 -203
- package/dist/cli.mjs.map +1 -1
- package/dist/compiler.js +57 -14
- package/dist/compiler.js.map +1 -1
- package/dist/compiler.mjs +71 -28
- package/dist/compiler.mjs.map +1 -1
- package/dist/dashboard.js +0 -1
- package/dist/dashboard.js.map +1 -1
- package/dist/devtools.js +16 -2
- package/dist/devtools.js.map +1 -1
- package/dist/devtools.mjs +21 -2
- package/dist/devtools.mjs.map +1 -1
- package/dist/engine.js +141 -51
- package/dist/engine.js.map +1 -1
- package/dist/engine.mjs +238 -148
- package/dist/engine.mjs.map +1 -1
- package/dist/index.js +50 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +74 -29
- package/dist/index.mjs.map +1 -1
- package/dist/next.js +98 -37
- package/dist/next.js.map +1 -1
- package/dist/next.mjs +177 -115
- package/dist/next.mjs.map +1 -1
- package/dist/plugin-api.js +0 -1
- package/dist/plugin-api.js.map +1 -1
- package/dist/plugin-registry.js +6 -2
- package/dist/plugin-registry.js.map +1 -1
- package/dist/plugin-registry.mjs +9 -2
- package/dist/plugin-registry.mjs.map +1 -1
- package/dist/plugin.js +0 -1
- package/dist/plugin.js.map +1 -1
- package/dist/preset.js +0 -1
- package/dist/preset.js.map +1 -1
- package/dist/rspack.js +89 -6
- package/dist/rspack.js.map +1 -1
- package/dist/rspack.mjs +39 -18
- package/dist/rspack.mjs.map +1 -1
- package/dist/runtime-css.js +0 -1
- package/dist/runtime-css.js.map +1 -1
- package/dist/runtime.js +0 -1
- package/dist/runtime.js.map +1 -1
- package/dist/scanner.js +29 -11
- package/dist/scanner.js.map +1 -1
- package/dist/scanner.mjs +84 -61
- package/dist/scanner.mjs.map +1 -1
- package/dist/shared.js +91 -35
- package/dist/shared.js.map +1 -1
- package/dist/shared.mjs +122 -64
- package/dist/shared.mjs.map +1 -1
- package/dist/storybook-addon.js +0 -1
- package/dist/storybook-addon.js.map +1 -1
- package/dist/svelte.js +40 -8
- package/dist/svelte.js.map +1 -1
- package/dist/svelte.mjs +57 -28
- package/dist/svelte.mjs.map +1 -1
- package/dist/syntax.js +7 -3
- package/dist/syntax.js.map +1 -1
- package/dist/syntax.mjs +30 -23
- package/dist/syntax.mjs.map +1 -1
- package/dist/testing.js +0 -1
- package/dist/testing.js.map +1 -1
- package/dist/theme.js +23 -5
- package/dist/theme.js.map +1 -1
- package/dist/theme.mjs +41 -17
- package/dist/theme.mjs.map +1 -1
- package/dist/turbopackLoader.js +58 -14
- package/dist/turbopackLoader.js.map +1 -1
- package/dist/turbopackLoader.mjs +89 -45
- package/dist/turbopackLoader.mjs.map +1 -1
- package/dist/tw.js +224 -38
- package/dist/tw.js.map +1 -1
- package/dist/tw.mjs +321 -203
- package/dist/tw.mjs.map +1 -1
- package/dist/vite.js +132 -50
- package/dist/vite.js.map +1 -1
- package/dist/vite.mjs +226 -143
- package/dist/vite.mjs.map +1 -1
- package/dist/vue.js +40 -8
- package/dist/vue.js.map +1 -1
- package/dist/vue.mjs +57 -28
- package/dist/vue.mjs.map +1 -1
- package/dist/webpackLoader.js +40 -10
- package/dist/webpackLoader.js.map +1 -1
- package/dist/webpackLoader.mjs +59 -27
- 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 +1 -1
package/dist/atomic.mjs
CHANGED
|
@@ -10,10 +10,31 @@ var __esm = (fn, res) => function __init() {
|
|
|
10
10
|
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
11
11
|
};
|
|
12
12
|
|
|
13
|
+
// node_modules/tsup/assets/esm_shims.js
|
|
14
|
+
import path from "path";
|
|
15
|
+
import { fileURLToPath } from "url";
|
|
16
|
+
var getFilename, __filename;
|
|
17
|
+
var init_esm_shims = __esm({
|
|
18
|
+
"node_modules/tsup/assets/esm_shims.js"() {
|
|
19
|
+
"use strict";
|
|
20
|
+
getFilename = () => fileURLToPath(import.meta.url);
|
|
21
|
+
__filename = /* @__PURE__ */ getFilename();
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
|
|
13
25
|
// packages/domain/shared/src/native-resolution.ts
|
|
14
26
|
import { createRequire } from "module";
|
|
15
27
|
import * as fs from "fs";
|
|
16
|
-
import * as
|
|
28
|
+
import * as path2 from "path";
|
|
29
|
+
function _safeCreateRequire() {
|
|
30
|
+
if (typeof import.meta !== "undefined" && import.meta.url && !import.meta.url.includes("unknown")) {
|
|
31
|
+
return createRequire(import.meta.url);
|
|
32
|
+
}
|
|
33
|
+
if (typeof __filename !== "undefined") {
|
|
34
|
+
return createRequire(__filename);
|
|
35
|
+
}
|
|
36
|
+
return createRequire(new URL(`file://${process.cwd()}/`).href);
|
|
37
|
+
}
|
|
17
38
|
function platformKey() {
|
|
18
39
|
if (isBrowser) return "browser";
|
|
19
40
|
return `${process.platform}-${process.arch}`;
|
|
@@ -49,11 +70,11 @@ function resolveNativeBinary(runtimeDir) {
|
|
|
49
70
|
const napiPlatform = platform === "linux-x64" ? "linux-x64-gnu" : platform === "linux-arm64" ? "linux-arm64-gnu" : platform;
|
|
50
71
|
const BINARY_NAMES_SELF = ["tailwind-styled-native", "tailwind_styled_parser"];
|
|
51
72
|
if (runtimeDir) {
|
|
52
|
-
for (const depth of ["..",
|
|
53
|
-
const pkgRoot =
|
|
73
|
+
for (const depth of ["..", path2.join("..", ".."), path2.join("..", "..", "..")]) {
|
|
74
|
+
const pkgRoot = path2.resolve(runtimeDir, depth);
|
|
54
75
|
for (const bin of BINARY_NAMES_SELF) {
|
|
55
76
|
for (const suffix of ["", `.${platform}`, `.${napiPlatform}`]) {
|
|
56
|
-
const candidate =
|
|
77
|
+
const candidate = path2.resolve(pkgRoot, "native", `${bin}${suffix}.node`);
|
|
57
78
|
tried.push(`self-bundled:${candidate}`);
|
|
58
79
|
if (fs.existsSync(candidate)) {
|
|
59
80
|
return { path: candidate, source: "prebuilt", platform, tried };
|
|
@@ -67,22 +88,22 @@ function resolveNativeBinary(runtimeDir) {
|
|
|
67
88
|
const BINARY_NAMES = ["tailwind-styled-native", "tailwind_styled_parser"];
|
|
68
89
|
const localCandidates = [];
|
|
69
90
|
for (const bin of BINARY_NAMES) {
|
|
70
|
-
localCandidates.push(
|
|
71
|
-
localCandidates.push(
|
|
72
|
-
localCandidates.push(
|
|
73
|
-
localCandidates.push(
|
|
91
|
+
localCandidates.push(path2.resolve(base, `${bin}.node`));
|
|
92
|
+
localCandidates.push(path2.resolve(base, "..", `${bin}.node`));
|
|
93
|
+
localCandidates.push(path2.resolve(base, `${bin}.${platform}.node`));
|
|
94
|
+
localCandidates.push(path2.resolve(base, `${bin}.${napiPlatform}.node`));
|
|
74
95
|
}
|
|
75
96
|
for (const startDir of [cwd, base]) {
|
|
76
97
|
let dir = startDir;
|
|
77
98
|
for (let i = 0; i < 6; i++) {
|
|
78
|
-
const nativeDir =
|
|
99
|
+
const nativeDir = path2.resolve(dir, "native");
|
|
79
100
|
for (const bin of BINARY_NAMES) {
|
|
80
|
-
localCandidates.push(
|
|
81
|
-
localCandidates.push(
|
|
82
|
-
localCandidates.push(
|
|
83
|
-
localCandidates.push(
|
|
101
|
+
localCandidates.push(path2.resolve(nativeDir, `${bin}.node`));
|
|
102
|
+
localCandidates.push(path2.resolve(nativeDir, `${bin}.${platform}.node`));
|
|
103
|
+
localCandidates.push(path2.resolve(nativeDir, `${bin}.${napiPlatform}.node`));
|
|
104
|
+
localCandidates.push(path2.resolve(nativeDir, "target", "release", `${bin}.node`));
|
|
84
105
|
}
|
|
85
|
-
const parent =
|
|
106
|
+
const parent = path2.resolve(dir, "..");
|
|
86
107
|
if (parent === dir) break;
|
|
87
108
|
dir = parent;
|
|
88
109
|
}
|
|
@@ -99,10 +120,9 @@ var isBrowser, _require, PLATFORM_MAP;
|
|
|
99
120
|
var init_native_resolution = __esm({
|
|
100
121
|
"packages/domain/shared/src/native-resolution.ts"() {
|
|
101
122
|
"use strict";
|
|
123
|
+
init_esm_shims();
|
|
102
124
|
isBrowser = typeof window !== "undefined" || typeof document !== "undefined";
|
|
103
|
-
_require =
|
|
104
|
-
typeof __require !== "undefined" ? typeof __filename !== "undefined" ? `file://${__filename}` : "file://unknown" : import.meta.url
|
|
105
|
-
);
|
|
125
|
+
_require = _safeCreateRequire();
|
|
106
126
|
PLATFORM_MAP = {
|
|
107
127
|
"linux-x64": ["@tailwind-styled/native-linux-x64-gnu", "@tailwind-styled/native-linux-x64"],
|
|
108
128
|
"linux-arm64": ["@tailwind-styled/native-linux-arm64-gnu", "@tailwind-styled/native-linux-arm64"],
|
|
@@ -117,13 +137,13 @@ var init_native_resolution = __esm({
|
|
|
117
137
|
// packages/domain/shared/src/index.ts
|
|
118
138
|
import { createHash } from "crypto";
|
|
119
139
|
import fs2 from "fs";
|
|
120
|
-
import
|
|
121
|
-
import { fileURLToPath } from "url";
|
|
140
|
+
import path3 from "path";
|
|
141
|
+
import { fileURLToPath as fileURLToPath2 } from "url";
|
|
122
142
|
import { createRequire as createRequire2 } from "module";
|
|
123
143
|
function resolveRuntimeDir(dir, importMetaUrl) {
|
|
124
|
-
if (dir) return
|
|
144
|
+
if (dir) return path3.resolve(dir);
|
|
125
145
|
try {
|
|
126
|
-
return
|
|
146
|
+
return path3.dirname(fileURLToPath2(importMetaUrl));
|
|
127
147
|
} catch {
|
|
128
148
|
return process.cwd();
|
|
129
149
|
}
|
|
@@ -132,6 +152,7 @@ var _require2;
|
|
|
132
152
|
var init_src = __esm({
|
|
133
153
|
"packages/domain/shared/src/index.ts"() {
|
|
134
154
|
"use strict";
|
|
155
|
+
init_esm_shims();
|
|
135
156
|
init_native_resolution();
|
|
136
157
|
_require2 = createRequire2(
|
|
137
158
|
typeof __filename !== "undefined" ? `file://${__filename}` : import.meta.url ?? "file://unknown"
|
|
@@ -144,8 +165,9 @@ var _loadNative, log, NATIVE_UNAVAILABLE_MESSAGE, nativeBridge, bridgeLoadAttemp
|
|
|
144
165
|
var init_nativeBridge = __esm({
|
|
145
166
|
"packages/domain/compiler/src/nativeBridge.ts"() {
|
|
146
167
|
"use strict";
|
|
168
|
+
init_esm_shims();
|
|
147
169
|
init_src();
|
|
148
|
-
_loadNative = (
|
|
170
|
+
_loadNative = (path5) => __require(path5);
|
|
149
171
|
log = (...args) => {
|
|
150
172
|
if (process.env.DEBUG?.includes("compiler:native")) {
|
|
151
173
|
console.log("[compiler:native]", ...args);
|
|
@@ -243,6 +265,7 @@ Tried paths: ${result.tried.join("\n")}`);
|
|
|
243
265
|
var init_compiler = __esm({
|
|
244
266
|
"packages/domain/compiler/src/compiler/index.ts"() {
|
|
245
267
|
"use strict";
|
|
268
|
+
init_esm_shims();
|
|
246
269
|
}
|
|
247
270
|
});
|
|
248
271
|
|
|
@@ -250,6 +273,7 @@ var init_compiler = __esm({
|
|
|
250
273
|
var init_parser = __esm({
|
|
251
274
|
"packages/domain/compiler/src/parser/index.ts"() {
|
|
252
275
|
"use strict";
|
|
276
|
+
init_esm_shims();
|
|
253
277
|
}
|
|
254
278
|
});
|
|
255
279
|
|
|
@@ -257,6 +281,7 @@ var init_parser = __esm({
|
|
|
257
281
|
var init_analyzer = __esm({
|
|
258
282
|
"packages/domain/compiler/src/analyzer/index.ts"() {
|
|
259
283
|
"use strict";
|
|
284
|
+
init_esm_shims();
|
|
260
285
|
}
|
|
261
286
|
});
|
|
262
287
|
|
|
@@ -264,6 +289,7 @@ var init_analyzer = __esm({
|
|
|
264
289
|
var init_cache = __esm({
|
|
265
290
|
"packages/domain/compiler/src/cache/index.ts"() {
|
|
266
291
|
"use strict";
|
|
292
|
+
init_esm_shims();
|
|
267
293
|
}
|
|
268
294
|
});
|
|
269
295
|
|
|
@@ -271,6 +297,7 @@ var init_cache = __esm({
|
|
|
271
297
|
var init_redis = __esm({
|
|
272
298
|
"packages/domain/compiler/src/redis/index.ts"() {
|
|
273
299
|
"use strict";
|
|
300
|
+
init_esm_shims();
|
|
274
301
|
}
|
|
275
302
|
});
|
|
276
303
|
|
|
@@ -278,17 +305,19 @@ var init_redis = __esm({
|
|
|
278
305
|
var init_watch = __esm({
|
|
279
306
|
"packages/domain/compiler/src/watch/index.ts"() {
|
|
280
307
|
"use strict";
|
|
308
|
+
init_esm_shims();
|
|
281
309
|
}
|
|
282
310
|
});
|
|
283
311
|
|
|
284
312
|
// packages/domain/compiler/src/index.ts
|
|
285
313
|
import fs3 from "fs";
|
|
286
|
-
import
|
|
314
|
+
import path4 from "path";
|
|
287
315
|
import { createRequire as createRequire3 } from "module";
|
|
288
316
|
var _require3;
|
|
289
317
|
var init_src2 = __esm({
|
|
290
318
|
"packages/domain/compiler/src/index.ts"() {
|
|
291
319
|
"use strict";
|
|
320
|
+
init_esm_shims();
|
|
292
321
|
init_nativeBridge();
|
|
293
322
|
init_compiler();
|
|
294
323
|
init_parser();
|
|
@@ -302,7 +331,11 @@ var init_src2 = __esm({
|
|
|
302
331
|
}
|
|
303
332
|
});
|
|
304
333
|
|
|
334
|
+
// src/umbrella/atomic.ts
|
|
335
|
+
init_esm_shims();
|
|
336
|
+
|
|
305
337
|
// packages/domain/atomic/src/index.ts
|
|
338
|
+
init_esm_shims();
|
|
306
339
|
init_src2();
|
|
307
340
|
function getNative() {
|
|
308
341
|
const native = getNativeBridge();
|