tailwind-styled-v4 5.0.38 → 5.0.39
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 +19 -19
- 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 +71 -49
- package/dist/cli.js.map +1 -1
- package/dist/cli.mjs +42 -13
- package/dist/cli.mjs.map +1 -1
- package/dist/compiler.js +25 -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 +88 -52
- package/dist/engine.js.map +1 -1
- package/dist/engine.mjs +58 -16
- package/dist/engine.mjs.map +1 -1
- package/dist/index.js +16 -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 +39 -29
- 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 -1
- 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 +37 -14
- 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 +15 -14
- 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 +66 -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 +16 -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 -2
- 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 -6
- package/dist/theme.js.map +1 -1
- package/dist/theme.mjs +3 -1
- package/dist/theme.mjs.map +1 -1
- package/dist/turbopackLoader.js +25 -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 +71 -49
- package/dist/tw.js.map +1 -1
- package/dist/tw.mjs +42 -13
- package/dist/tw.mjs.map +1 -1
- package/dist/vite.js +84 -50
- package/dist/vite.js.map +1 -1
- package/dist/vite.mjs +55 -15
- package/dist/vite.mjs.map +1 -1
- package/dist/vue.js +16 -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/turbopackLoader.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
const __importMetaUrl = typeof __filename !== "undefined" ? require("node:url").pathToFileURL(__filename).href : "file://unknown";
|
|
1
2
|
/* tailwind-styled-v4 v5.0.4 | MIT | https://github.com/dictionar32/tailwind-styled-v4 */
|
|
2
3
|
"use strict";
|
|
3
4
|
var __create = Object.create;
|
|
@@ -113,16 +114,17 @@ function resolveNativeBinary(runtimeDir) {
|
|
|
113
114
|
}
|
|
114
115
|
return { path: null, source: "not-found", platform, tried };
|
|
115
116
|
}
|
|
116
|
-
var import_node_module, fs, path,
|
|
117
|
+
var import_node_module, fs, path, isBrowser, _require, PLATFORM_MAP;
|
|
117
118
|
var init_native_resolution = __esm({
|
|
118
119
|
"packages/domain/shared/src/native-resolution.ts"() {
|
|
119
120
|
"use strict";
|
|
120
121
|
import_node_module = require("module");
|
|
121
122
|
fs = __toESM(require("fs"));
|
|
122
123
|
path = __toESM(require("path"));
|
|
123
|
-
import_meta = {};
|
|
124
124
|
isBrowser = typeof window !== "undefined" || typeof document !== "undefined";
|
|
125
|
-
_require =
|
|
125
|
+
_require = (0, import_node_module.createRequire)(
|
|
126
|
+
typeof require !== "undefined" ? typeof __filename !== "undefined" ? `file://${__filename}` : "file://unknown" : __importMetaUrl
|
|
127
|
+
);
|
|
126
128
|
PLATFORM_MAP = {
|
|
127
129
|
"linux-x64": ["@tailwind-styled/native-linux-x64-gnu", "@tailwind-styled/native-linux-x64"],
|
|
128
130
|
"linux-arm64": ["@tailwind-styled/native-linux-arm64-gnu", "@tailwind-styled/native-linux-arm64"],
|
|
@@ -143,7 +145,7 @@ function resolveRuntimeDir(dir, importMetaUrl) {
|
|
|
143
145
|
return process.cwd();
|
|
144
146
|
}
|
|
145
147
|
}
|
|
146
|
-
var import_node_crypto, import_node_fs, import_node_path, import_node_url, import_node_module2,
|
|
148
|
+
var import_node_crypto, import_node_fs, import_node_path, import_node_url, import_node_module2, _require2;
|
|
147
149
|
var init_src = __esm({
|
|
148
150
|
"packages/domain/shared/src/index.ts"() {
|
|
149
151
|
"use strict";
|
|
@@ -153,18 +155,18 @@ var init_src = __esm({
|
|
|
153
155
|
import_node_url = require("url");
|
|
154
156
|
import_node_module2 = require("module");
|
|
155
157
|
init_native_resolution();
|
|
156
|
-
|
|
157
|
-
|
|
158
|
+
_require2 = (0, import_node_module2.createRequire)(
|
|
159
|
+
typeof __filename !== "undefined" ? `file://${__filename}` : __importMetaUrl ?? "file://unknown"
|
|
160
|
+
);
|
|
158
161
|
}
|
|
159
162
|
});
|
|
160
163
|
|
|
161
164
|
// packages/domain/compiler/src/nativeBridge.ts
|
|
162
|
-
var
|
|
165
|
+
var _loadNative, log, NATIVE_UNAVAILABLE_MESSAGE, nativeBridge, bridgeLoadAttempted, bridgeLoadError, isValidNativeBridge, getNativeBridge, adaptNativeResult;
|
|
163
166
|
var init_nativeBridge = __esm({
|
|
164
167
|
"packages/domain/compiler/src/nativeBridge.ts"() {
|
|
165
168
|
"use strict";
|
|
166
169
|
init_src();
|
|
167
|
-
import_meta3 = {};
|
|
168
170
|
_loadNative = (path5) => require(path5);
|
|
169
171
|
log = (...args) => {
|
|
170
172
|
if (process.env.DEBUG?.includes("compiler:native")) {
|
|
@@ -191,7 +193,7 @@ var init_nativeBridge = __esm({
|
|
|
191
193
|
}
|
|
192
194
|
bridgeLoadAttempted = true;
|
|
193
195
|
try {
|
|
194
|
-
const runtimeDir = resolveRuntimeDir(void 0,
|
|
196
|
+
const runtimeDir = resolveRuntimeDir(void 0, __importMetaUrl);
|
|
195
197
|
const result = resolveNativeBinary(runtimeDir);
|
|
196
198
|
if (result.path && result.path.endsWith(".node")) {
|
|
197
199
|
try {
|
|
@@ -810,13 +812,15 @@ async function generateRawCss(classes, cssEntryContent, root) {
|
|
|
810
812
|
const compiler = await Promise.resolve(tw.compile(input, { loadStylesheet }));
|
|
811
813
|
return compiler.build(classes);
|
|
812
814
|
}
|
|
813
|
-
var import_node_module3,
|
|
815
|
+
var import_node_module3, import_meta, require2, MAX_CACHE_MEMORY, _twEngine, _twEngineError;
|
|
814
816
|
var init_tailwindEngine = __esm({
|
|
815
817
|
"packages/domain/compiler/src/tailwindEngine.ts"() {
|
|
816
818
|
"use strict";
|
|
817
819
|
import_node_module3 = require("module");
|
|
818
|
-
|
|
819
|
-
require2 = (0, import_node_module3.createRequire)(
|
|
820
|
+
import_meta = {};
|
|
821
|
+
require2 = (0, import_node_module3.createRequire)(
|
|
822
|
+
typeof __filename !== "undefined" ? `file://${__filename}` : typeof import_meta !== "undefined" && __importMetaUrl ? __importMetaUrl : "file://unknown"
|
|
823
|
+
);
|
|
820
824
|
MAX_CACHE_MEMORY = 256 * 1024;
|
|
821
825
|
_twEngine = null;
|
|
822
826
|
_twEngineError = null;
|
|
@@ -998,7 +1002,7 @@ function processTailwindCssWithTargets(css, targets) {
|
|
|
998
1002
|
}
|
|
999
1003
|
return result.css;
|
|
1000
1004
|
}
|
|
1001
|
-
var import_node_module4,
|
|
1005
|
+
var import_node_module4, import_meta2, require3, _cssCache, _cacheHits, _cacheMisses, MAX_CACHE_SIZE, MAX_CACHE_MEMORY2;
|
|
1002
1006
|
var init_tailwindEngine2 = __esm({
|
|
1003
1007
|
"packages/domain/compiler/src/compiler/tailwindEngine.ts"() {
|
|
1004
1008
|
"use strict";
|
|
@@ -1007,8 +1011,10 @@ var init_tailwindEngine2 = __esm({
|
|
|
1007
1011
|
init_cssGeneratorNative();
|
|
1008
1012
|
init_cssCompilationNative();
|
|
1009
1013
|
init_tailwindEngine();
|
|
1010
|
-
|
|
1011
|
-
require3 = (0, import_node_module4.createRequire)(
|
|
1014
|
+
import_meta2 = {};
|
|
1015
|
+
require3 = (0, import_node_module4.createRequire)(
|
|
1016
|
+
typeof __filename !== "undefined" ? `file://${__filename}` : typeof import_meta2 !== "undefined" && __importMetaUrl ? __importMetaUrl : "file://unknown"
|
|
1017
|
+
);
|
|
1012
1018
|
_cssCache = /* @__PURE__ */ new Map();
|
|
1013
1019
|
_cacheHits = 0;
|
|
1014
1020
|
_cacheMisses = 0;
|
|
@@ -2003,7 +2009,7 @@ function extractContainerCssFromSource(source) {
|
|
|
2003
2009
|
}
|
|
2004
2010
|
return rules.join("\n");
|
|
2005
2011
|
}
|
|
2006
|
-
var import_node_fs2, import_node_path2, import_node_module5,
|
|
2012
|
+
var import_node_fs2, import_node_path2, import_node_module5, _require3, transformSource, hasTwUsage, isAlreadyTransformed, shouldProcess, compileCssFromClasses, buildStyleTag, generateCssForClasses, eliminateDeadCss, findDeadVariants, runElimination, scanProjectUsage, generateSafelist, loadSafelist, loadTailwindConfig, getContentPaths, _CONTAINER_BREAKPOINTS, runLoaderTransform, shouldSkipFile, fileToRoute, getAllRoutes, getRouteClasses, registerFileClasses, registerGlobalClasses, _incrementalEngineInstance, getIncrementalEngine, resetIncrementalEngine, IncrementalEngine, getBucketEngine, resetBucketEngine, classifyNode, detectConflicts, bucketSort, analyzeFile, analyzeVariantUsage, injectClientDirective, injectServerOnlyComment, analyzeClasses, extractTwStateConfigs, generateStaticStateCss, extractAndGenerateStateCss;
|
|
2007
2013
|
var init_src2 = __esm({
|
|
2008
2014
|
"packages/domain/compiler/src/index.ts"() {
|
|
2009
2015
|
"use strict";
|
|
@@ -2017,8 +2023,9 @@ var init_src2 = __esm({
|
|
|
2017
2023
|
init_cache();
|
|
2018
2024
|
init_redis();
|
|
2019
2025
|
init_watch();
|
|
2020
|
-
|
|
2021
|
-
|
|
2026
|
+
_require3 = (0, import_node_module5.createRequire)(
|
|
2027
|
+
typeof require !== "undefined" ? typeof __filename !== "undefined" ? `file://${__filename}` : "file://unknown" : __importMetaUrl
|
|
2028
|
+
);
|
|
2022
2029
|
transformSource = (source, opts) => {
|
|
2023
2030
|
const native = getNativeBridge();
|
|
2024
2031
|
if (!native?.transformSource) {
|