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/compiler.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, resetNativeBridgeCache, 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 = (path4) => require(path4);
|
|
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 {
|
|
@@ -828,13 +830,15 @@ async function generateRawCss(classes, cssEntryContent, root) {
|
|
|
828
830
|
const compiler = await Promise.resolve(tw.compile(input, { loadStylesheet }));
|
|
829
831
|
return compiler.build(classes);
|
|
830
832
|
}
|
|
831
|
-
var import_node_module3,
|
|
833
|
+
var import_node_module3, import_meta, require2, MAX_CACHE_MEMORY, _twEngine, _twEngineError;
|
|
832
834
|
var init_tailwindEngine = __esm({
|
|
833
835
|
"packages/domain/compiler/src/tailwindEngine.ts"() {
|
|
834
836
|
"use strict";
|
|
835
837
|
import_node_module3 = require("module");
|
|
836
|
-
|
|
837
|
-
require2 = (0, import_node_module3.createRequire)(
|
|
838
|
+
import_meta = {};
|
|
839
|
+
require2 = (0, import_node_module3.createRequire)(
|
|
840
|
+
typeof __filename !== "undefined" ? `file://${__filename}` : typeof import_meta !== "undefined" && __importMetaUrl ? __importMetaUrl : "file://unknown"
|
|
841
|
+
);
|
|
838
842
|
MAX_CACHE_MEMORY = 256 * 1024;
|
|
839
843
|
_twEngine = null;
|
|
840
844
|
_twEngineError = null;
|
|
@@ -1016,7 +1020,7 @@ function processTailwindCssWithTargets(css, targets) {
|
|
|
1016
1020
|
}
|
|
1017
1021
|
return result.css;
|
|
1018
1022
|
}
|
|
1019
|
-
var import_node_module4,
|
|
1023
|
+
var import_node_module4, import_meta2, require3, _cssCache, _cacheHits, _cacheMisses, MAX_CACHE_SIZE, MAX_CACHE_MEMORY2;
|
|
1020
1024
|
var init_tailwindEngine2 = __esm({
|
|
1021
1025
|
"packages/domain/compiler/src/compiler/tailwindEngine.ts"() {
|
|
1022
1026
|
"use strict";
|
|
@@ -1025,8 +1029,10 @@ var init_tailwindEngine2 = __esm({
|
|
|
1025
1029
|
init_cssGeneratorNative();
|
|
1026
1030
|
init_cssCompilationNative();
|
|
1027
1031
|
init_tailwindEngine();
|
|
1028
|
-
|
|
1029
|
-
require3 = (0, import_node_module4.createRequire)(
|
|
1032
|
+
import_meta2 = {};
|
|
1033
|
+
require3 = (0, import_node_module4.createRequire)(
|
|
1034
|
+
typeof __filename !== "undefined" ? `file://${__filename}` : typeof import_meta2 !== "undefined" && __importMetaUrl ? __importMetaUrl : "file://unknown"
|
|
1035
|
+
);
|
|
1030
1036
|
_cssCache = /* @__PURE__ */ new Map();
|
|
1031
1037
|
_cacheHits = 0;
|
|
1032
1038
|
_cacheMisses = 0;
|
|
@@ -2022,7 +2028,7 @@ function extractContainerCssFromSource(source) {
|
|
|
2022
2028
|
}
|
|
2023
2029
|
return rules.join("\n");
|
|
2024
2030
|
}
|
|
2025
|
-
var import_node_fs2, import_node_path2, import_node_module5,
|
|
2031
|
+
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, BucketEngine, classifyNode, detectConflicts, bucketSort, analyzeFile, analyzeVariantUsage, injectClientDirective, injectServerOnlyComment, analyzeClasses, extractTwStateConfigs, generateStaticStateCss, extractAndGenerateStateCss;
|
|
2026
2032
|
var init_src2 = __esm({
|
|
2027
2033
|
"packages/domain/compiler/src/index.ts"() {
|
|
2028
2034
|
"use strict";
|
|
@@ -2036,8 +2042,9 @@ var init_src2 = __esm({
|
|
|
2036
2042
|
init_cache();
|
|
2037
2043
|
init_redis();
|
|
2038
2044
|
init_watch();
|
|
2039
|
-
|
|
2040
|
-
|
|
2045
|
+
_require3 = (0, import_node_module5.createRequire)(
|
|
2046
|
+
typeof require !== "undefined" ? typeof __filename !== "undefined" ? `file://${__filename}` : "file://unknown" : __importMetaUrl
|
|
2047
|
+
);
|
|
2041
2048
|
transformSource = (source, opts) => {
|
|
2042
2049
|
const native = getNativeBridge();
|
|
2043
2050
|
if (!native?.transformSource) {
|