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/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,14 @@ 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, 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
|
-
|
|
838
|
+
require2 = (0, import_node_module3.createRequire)(
|
|
839
|
+
typeof __filename !== "undefined" ? `file://${__filename}` : false ? __importMetaUrl : "file://unknown"
|
|
840
|
+
);
|
|
838
841
|
MAX_CACHE_MEMORY = 256 * 1024;
|
|
839
842
|
_twEngine = null;
|
|
840
843
|
_twEngineError = null;
|
|
@@ -1016,7 +1019,7 @@ function processTailwindCssWithTargets(css, targets) {
|
|
|
1016
1019
|
}
|
|
1017
1020
|
return result.css;
|
|
1018
1021
|
}
|
|
1019
|
-
var import_node_module4,
|
|
1022
|
+
var import_node_module4, require3, _cssCache, _cacheHits, _cacheMisses, MAX_CACHE_SIZE, MAX_CACHE_MEMORY2;
|
|
1020
1023
|
var init_tailwindEngine2 = __esm({
|
|
1021
1024
|
"packages/domain/compiler/src/compiler/tailwindEngine.ts"() {
|
|
1022
1025
|
"use strict";
|
|
@@ -1025,8 +1028,9 @@ var init_tailwindEngine2 = __esm({
|
|
|
1025
1028
|
init_cssGeneratorNative();
|
|
1026
1029
|
init_cssCompilationNative();
|
|
1027
1030
|
init_tailwindEngine();
|
|
1028
|
-
|
|
1029
|
-
|
|
1031
|
+
require3 = (0, import_node_module4.createRequire)(
|
|
1032
|
+
typeof __filename !== "undefined" ? `file://${__filename}` : false ? __importMetaUrl : "file://unknown"
|
|
1033
|
+
);
|
|
1030
1034
|
_cssCache = /* @__PURE__ */ new Map();
|
|
1031
1035
|
_cacheHits = 0;
|
|
1032
1036
|
_cacheMisses = 0;
|
|
@@ -2022,7 +2026,7 @@ function extractContainerCssFromSource(source) {
|
|
|
2022
2026
|
}
|
|
2023
2027
|
return rules.join("\n");
|
|
2024
2028
|
}
|
|
2025
|
-
var import_node_fs2, import_node_path2, import_node_module5,
|
|
2029
|
+
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
2030
|
var init_src2 = __esm({
|
|
2027
2031
|
"packages/domain/compiler/src/index.ts"() {
|
|
2028
2032
|
"use strict";
|
|
@@ -2036,8 +2040,9 @@ var init_src2 = __esm({
|
|
|
2036
2040
|
init_cache();
|
|
2037
2041
|
init_redis();
|
|
2038
2042
|
init_watch();
|
|
2039
|
-
|
|
2040
|
-
|
|
2043
|
+
_require3 = (0, import_node_module5.createRequire)(
|
|
2044
|
+
typeof require !== "undefined" ? typeof __filename !== "undefined" ? `file://${__filename}` : "file://unknown" : __importMetaUrl
|
|
2045
|
+
);
|
|
2041
2046
|
transformSource = (source, opts) => {
|
|
2042
2047
|
const native = getNativeBridge();
|
|
2043
2048
|
if (!native?.transformSource) {
|