tailwind-styled-v4 5.0.38 → 5.0.40
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 +18 -20
- package/dist/analyzer.js.map +1 -1
- package/dist/analyzer.mjs +3 -1
- package/dist/analyzer.mjs.map +1 -1
- package/dist/animate.js +8 -8
- package/dist/animate.js.map +1 -1
- package/dist/animate.mjs +3 -1
- package/dist/animate.mjs.map +1 -1
- package/dist/atomic.js +15 -12
- package/dist/atomic.js.map +1 -1
- package/dist/atomic.mjs +9 -3
- package/dist/atomic.mjs.map +1 -1
- package/dist/cli.js +45 -95
- package/dist/cli.js.map +1 -1
- package/dist/cli.mjs +42 -13
- package/dist/cli.mjs.map +1 -1
- package/dist/compiler.js +23 -18
- package/dist/compiler.js.map +1 -1
- package/dist/compiler.mjs +15 -5
- package/dist/compiler.mjs.map +1 -1
- package/dist/dashboard.js +1 -0
- package/dist/dashboard.js.map +1 -1
- package/dist/devtools.js +5 -3
- package/dist/devtools.js.map +1 -1
- package/dist/devtools.mjs +3 -1
- package/dist/devtools.mjs.map +1 -1
- package/dist/engine.js +83 -53
- package/dist/engine.js.map +1 -1
- package/dist/engine.mjs +58 -16
- package/dist/engine.mjs.map +1 -1
- package/dist/index.js +15 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -4
- package/dist/index.mjs.map +1 -1
- package/dist/next.js +35 -30
- package/dist/next.js.map +1 -1
- package/dist/next.mjs +21 -8
- package/dist/next.mjs.map +1 -1
- package/dist/plugin-api.js +1 -0
- package/dist/plugin-api.js.map +1 -1
- package/dist/plugin-registry.js +2 -2
- package/dist/plugin-registry.js.map +1 -1
- package/dist/plugin.js +1 -0
- package/dist/plugin.js.map +1 -1
- package/dist/preset.js +1 -0
- package/dist/preset.js.map +1 -1
- package/dist/rspack.js +9 -55
- package/dist/rspack.js.map +1 -1
- package/dist/rspack.mjs +31 -7
- package/dist/rspack.mjs.map +1 -1
- package/dist/runtime-css.js +1 -0
- package/dist/runtime-css.js.map +1 -1
- package/dist/runtime.js +1 -0
- package/dist/runtime.js.map +1 -1
- package/dist/scanner.js +14 -15
- package/dist/scanner.js.map +1 -1
- package/dist/scanner.mjs +3 -1
- package/dist/scanner.mjs.map +1 -1
- package/dist/shared.d.mts +0 -12
- package/dist/shared.d.ts +0 -12
- package/dist/shared.js +64 -30
- package/dist/shared.js.map +1 -1
- package/dist/shared.mjs +55 -15
- package/dist/shared.mjs.map +1 -1
- package/dist/storybook-addon.js +1 -0
- package/dist/storybook-addon.js.map +1 -1
- package/dist/svelte.js +15 -9
- package/dist/svelte.js.map +1 -1
- package/dist/svelte.mjs +12 -4
- package/dist/svelte.mjs.map +1 -1
- package/dist/syntax.js +3 -3
- package/dist/syntax.js.map +1 -1
- package/dist/testing.js +1 -0
- package/dist/testing.js.map +1 -1
- package/dist/theme.js +8 -7
- package/dist/theme.js.map +1 -1
- package/dist/theme.mjs +3 -1
- package/dist/theme.mjs.map +1 -1
- package/dist/turbopackLoader.js +23 -18
- package/dist/turbopackLoader.js.map +1 -1
- package/dist/turbopackLoader.mjs +15 -5
- package/dist/turbopackLoader.mjs.map +1 -1
- package/dist/tw.js +45 -95
- package/dist/tw.js.map +1 -1
- package/dist/tw.mjs +42 -13
- package/dist/tw.mjs.map +1 -1
- package/dist/vite.js +80 -51
- package/dist/vite.js.map +1 -1
- package/dist/vite.mjs +55 -15
- package/dist/vite.mjs.map +1 -1
- package/dist/vue.js +15 -9
- package/dist/vue.js.map +1 -1
- package/dist/vue.mjs +12 -4
- package/dist/vue.mjs.map +1 -1
- package/dist/webpackLoader.js +15 -12
- package/dist/webpackLoader.js.map +1 -1
- package/dist/webpackLoader.mjs +9 -3
- 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/vite.mjs
CHANGED
|
@@ -300,48 +300,78 @@ function getNodeModuleRef() {
|
|
|
300
300
|
return null;
|
|
301
301
|
}
|
|
302
302
|
}
|
|
303
|
+
function getCurrentFileUrl() {
|
|
304
|
+
if (import.meta.url) {
|
|
305
|
+
return import.meta.url;
|
|
306
|
+
}
|
|
307
|
+
if (typeof __filename !== "undefined") {
|
|
308
|
+
return `file://${__filename.replace(/\\/g, "/")}`;
|
|
309
|
+
}
|
|
310
|
+
return "file://unknown";
|
|
311
|
+
}
|
|
303
312
|
function getNodePath() {
|
|
304
313
|
if (isBrowser) throw new Error("node:path not available in browser");
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
314
|
+
if (!_nodePath) {
|
|
315
|
+
if (typeof __require === "function") {
|
|
316
|
+
_nodePath = __require("path");
|
|
317
|
+
} else {
|
|
318
|
+
const nodeRequire = getNodeModuleRef();
|
|
319
|
+
if (!nodeRequire) throw new Error("require not available");
|
|
320
|
+
_nodePath = nodeRequire.createRequire(getCurrentFileUrl())("node:path");
|
|
321
|
+
}
|
|
322
|
+
}
|
|
308
323
|
return _nodePath;
|
|
309
324
|
}
|
|
310
325
|
function getNodeUrl() {
|
|
311
326
|
if (isBrowser) throw new Error("node:url not available in browser");
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
327
|
+
if (!_nodeUrl) {
|
|
328
|
+
if (typeof __require === "function") {
|
|
329
|
+
_nodeUrl = __require("url");
|
|
330
|
+
} else {
|
|
331
|
+
const nodeRequire = getNodeModuleRef();
|
|
332
|
+
if (!nodeRequire) throw new Error("require not available");
|
|
333
|
+
_nodeUrl = nodeRequire.createRequire(getCurrentFileUrl())("node:url");
|
|
334
|
+
}
|
|
335
|
+
}
|
|
315
336
|
return _nodeUrl;
|
|
316
337
|
}
|
|
317
338
|
function getNodeFs() {
|
|
318
339
|
if (isBrowser) throw new Error("node:fs not available in browser");
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
340
|
+
if (!_nodeFs) {
|
|
341
|
+
if (typeof __require === "function") {
|
|
342
|
+
_nodeFs = __require("fs");
|
|
343
|
+
} else {
|
|
344
|
+
const nodeRequire = getNodeModuleRef();
|
|
345
|
+
if (!nodeRequire) throw new Error("require not available");
|
|
346
|
+
_nodeFs = nodeRequire.createRequire(getCurrentFileUrl())("node:fs");
|
|
347
|
+
}
|
|
348
|
+
}
|
|
322
349
|
return _nodeFs;
|
|
323
350
|
}
|
|
324
351
|
function createEsmRequire(importMetaUrl) {
|
|
325
352
|
if (isBrowser) throw new Error("require not available in browser");
|
|
353
|
+
if (typeof __require === "function") return __require;
|
|
326
354
|
const nodeRequire = getNodeModuleRef();
|
|
327
355
|
if (!nodeRequire) throw new Error("require not available");
|
|
328
356
|
return nodeRequire.createRequire(importMetaUrl);
|
|
329
357
|
}
|
|
330
358
|
function getDirname(importMetaUrl) {
|
|
331
359
|
if (isBrowser) return "";
|
|
360
|
+
if (typeof __dirname !== "undefined") return __dirname;
|
|
332
361
|
const nodePath = getNodePath();
|
|
333
362
|
const nodeUrl = getNodeUrl();
|
|
334
363
|
return nodePath.dirname(nodeUrl.fileURLToPath(importMetaUrl));
|
|
335
364
|
}
|
|
336
365
|
function getFilename(importMetaUrl) {
|
|
337
366
|
if (isBrowser) return "";
|
|
367
|
+
if (typeof __filename !== "undefined") return __filename;
|
|
338
368
|
return getNodeUrl().fileURLToPath(importMetaUrl);
|
|
339
369
|
}
|
|
340
370
|
function resolveFromRoot(...segments) {
|
|
341
371
|
if (isBrowser) return segments.join("/");
|
|
342
372
|
const nodePath = getNodePath();
|
|
343
373
|
const nodeFs = getNodeFs();
|
|
344
|
-
let dir = getDirname(
|
|
374
|
+
let dir = typeof __dirname !== "undefined" ? __dirname : getDirname(getCurrentFileUrl());
|
|
345
375
|
for (let i = 0; i < 10; i++) {
|
|
346
376
|
const pkgPath = nodePath.join(dir, "package.json");
|
|
347
377
|
try {
|
|
@@ -947,7 +977,9 @@ var init_native_resolution = __esm({
|
|
|
947
977
|
"packages/domain/shared/src/native-resolution.ts"() {
|
|
948
978
|
"use strict";
|
|
949
979
|
isBrowser3 = typeof window !== "undefined" || typeof document !== "undefined";
|
|
950
|
-
_require =
|
|
980
|
+
_require = createRequire(
|
|
981
|
+
typeof __require !== "undefined" ? typeof __filename !== "undefined" ? `file://${__filename}` : "file://unknown" : import.meta.url
|
|
982
|
+
);
|
|
951
983
|
PLATFORM_MAP = {
|
|
952
984
|
"linux-x64": ["@tailwind-styled/native-linux-x64-gnu", "@tailwind-styled/native-linux-x64"],
|
|
953
985
|
"linux-arm64": ["@tailwind-styled/native-linux-arm64-gnu", "@tailwind-styled/native-linux-arm64"],
|
|
@@ -1229,7 +1261,9 @@ var require2, MAX_CACHE_MEMORY, _twEngine, _twEngineError;
|
|
|
1229
1261
|
var init_tailwindEngine = __esm({
|
|
1230
1262
|
"packages/domain/compiler/src/tailwindEngine.ts"() {
|
|
1231
1263
|
"use strict";
|
|
1232
|
-
require2 = createRequire2(
|
|
1264
|
+
require2 = createRequire2(
|
|
1265
|
+
typeof __filename !== "undefined" ? `file://${__filename}` : typeof import.meta !== "undefined" && import.meta.url ? import.meta.url : "file://unknown"
|
|
1266
|
+
);
|
|
1233
1267
|
MAX_CACHE_MEMORY = 256 * 1024;
|
|
1234
1268
|
_twEngine = null;
|
|
1235
1269
|
_twEngineError = null;
|
|
@@ -1420,7 +1454,9 @@ var init_tailwindEngine2 = __esm({
|
|
|
1420
1454
|
init_cssGeneratorNative();
|
|
1421
1455
|
init_cssCompilationNative();
|
|
1422
1456
|
init_tailwindEngine();
|
|
1423
|
-
require3 = createRequire3(
|
|
1457
|
+
require3 = createRequire3(
|
|
1458
|
+
typeof __filename !== "undefined" ? `file://${__filename}` : typeof import.meta !== "undefined" && import.meta.url ? import.meta.url : "file://unknown"
|
|
1459
|
+
);
|
|
1424
1460
|
_cssCache = /* @__PURE__ */ new Map();
|
|
1425
1461
|
_cacheHits = 0;
|
|
1426
1462
|
_cacheMisses = 0;
|
|
@@ -3522,7 +3558,9 @@ var init_src = __esm({
|
|
|
3522
3558
|
return `[${this.source.toUpperCase()}:${this.code}] ${this.message}`;
|
|
3523
3559
|
}
|
|
3524
3560
|
};
|
|
3525
|
-
_require2 = createRequire4(
|
|
3561
|
+
_require2 = createRequire4(
|
|
3562
|
+
typeof __filename !== "undefined" ? `file://${__filename}` : import.meta.url ?? "file://unknown"
|
|
3563
|
+
);
|
|
3526
3564
|
LRUCache = class {
|
|
3527
3565
|
capacity;
|
|
3528
3566
|
cache;
|
|
@@ -3725,7 +3763,9 @@ var init_src2 = __esm({
|
|
|
3725
3763
|
init_cache();
|
|
3726
3764
|
init_redis();
|
|
3727
3765
|
init_watch();
|
|
3728
|
-
_require3 = createRequire5(
|
|
3766
|
+
_require3 = createRequire5(
|
|
3767
|
+
typeof __require !== "undefined" ? typeof __filename !== "undefined" ? `file://${__filename}` : "file://unknown" : import.meta.url
|
|
3768
|
+
);
|
|
3729
3769
|
transformSource = (source, opts) => {
|
|
3730
3770
|
const native = getNativeBridge();
|
|
3731
3771
|
if (!native?.transformSource) {
|