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/analyzer.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;
|
|
@@ -136,7 +137,7 @@ function resolveRuntimeDir(dir, importMetaUrl) {
|
|
|
136
137
|
return process.cwd();
|
|
137
138
|
}
|
|
138
139
|
}
|
|
139
|
-
var import_node_crypto, import_node_fs, import_node_path, import_node_url, import_node_module,
|
|
140
|
+
var import_node_crypto, import_node_fs, import_node_path, import_node_url, import_node_module, TwError, _require;
|
|
140
141
|
var init_src = __esm({
|
|
141
142
|
"packages/domain/shared/src/index.ts"() {
|
|
142
143
|
"use strict";
|
|
@@ -145,7 +146,6 @@ var init_src = __esm({
|
|
|
145
146
|
import_node_path = __toESM(require("path"));
|
|
146
147
|
import_node_url = require("url");
|
|
147
148
|
import_node_module = require("module");
|
|
148
|
-
import_meta = {};
|
|
149
149
|
TwError = class _TwError extends Error {
|
|
150
150
|
/** @deprecated Gunakan source */
|
|
151
151
|
domain;
|
|
@@ -198,7 +198,9 @@ var init_src = __esm({
|
|
|
198
198
|
return `[${this.source.toUpperCase()}:${this.code}] ${this.message}`;
|
|
199
199
|
}
|
|
200
200
|
};
|
|
201
|
-
_require = (0, import_node_module.createRequire)(
|
|
201
|
+
_require = (0, import_node_module.createRequire)(
|
|
202
|
+
typeof __filename !== "undefined" ? `file://${__filename}` : __importMetaUrl ?? "file://unknown"
|
|
203
|
+
);
|
|
202
204
|
}
|
|
203
205
|
});
|
|
204
206
|
|
|
@@ -235,8 +237,8 @@ function getDirname() {
|
|
|
235
237
|
if (typeof __dirname !== "undefined") {
|
|
236
238
|
return __dirname;
|
|
237
239
|
}
|
|
238
|
-
if (typeof
|
|
239
|
-
return import_node_path2.default.dirname((0, import_node_url2.fileURLToPath)(
|
|
240
|
+
if (typeof import_meta !== "undefined" && __importMetaUrl) {
|
|
241
|
+
return import_node_path2.default.dirname((0, import_node_url2.fileURLToPath)(__importMetaUrl));
|
|
240
242
|
}
|
|
241
243
|
return process.cwd();
|
|
242
244
|
}
|
|
@@ -441,14 +443,14 @@ function hasNativeWatchBinding() {
|
|
|
441
443
|
return false;
|
|
442
444
|
}
|
|
443
445
|
}
|
|
444
|
-
var import_node_path2, import_node_url2,
|
|
446
|
+
var import_node_path2, import_node_url2, import_meta, log, isValidScannerBinding, createScannerBridgeLoader, scannerBridgeLoader, scannerGetBinding, resetScannerBridgeCache;
|
|
445
447
|
var init_native_bridge = __esm({
|
|
446
448
|
"packages/domain/scanner/src/native-bridge.ts"() {
|
|
447
449
|
"use strict";
|
|
448
450
|
import_node_path2 = __toESM(require("path"), 1);
|
|
449
451
|
import_node_url2 = require("url");
|
|
450
452
|
init_src();
|
|
451
|
-
|
|
453
|
+
import_meta = {};
|
|
452
454
|
log = createDebugLogger("scanner:native");
|
|
453
455
|
isValidScannerBinding = (module2) => {
|
|
454
456
|
const candidate = module2;
|
|
@@ -638,7 +640,7 @@ async function scanWorkspaceParallel(rootDir, options = {}) {
|
|
|
638
640
|
}
|
|
639
641
|
return mergeResults(allResults);
|
|
640
642
|
}
|
|
641
|
-
var import_node_worker_threads, import_node_path4, import_node_os, import_node_url3,
|
|
643
|
+
var import_node_worker_threads, import_node_path4, import_node_os, import_node_url3, PARALLEL_THRESHOLD, DEFAULT_CHUNK_SIZE, _workerFilename;
|
|
642
644
|
var init_parallel_scanner = __esm({
|
|
643
645
|
"packages/domain/scanner/src/parallel-scanner.ts"() {
|
|
644
646
|
"use strict";
|
|
@@ -648,7 +650,6 @@ var init_parallel_scanner = __esm({
|
|
|
648
650
|
import_node_url3 = require("url");
|
|
649
651
|
init_src2();
|
|
650
652
|
init_native_bridge();
|
|
651
|
-
import_meta3 = {};
|
|
652
653
|
PARALLEL_THRESHOLD = 50;
|
|
653
654
|
DEFAULT_CHUNK_SIZE = 150;
|
|
654
655
|
if (!import_node_worker_threads.isMainThread && import_node_worker_threads.parentPort) {
|
|
@@ -665,7 +666,7 @@ var init_parallel_scanner = __esm({
|
|
|
665
666
|
import_node_worker_threads.parentPort.postMessage(msg);
|
|
666
667
|
}
|
|
667
668
|
}
|
|
668
|
-
_workerFilename = typeof __filename !== "undefined" ? __filename : (0, import_node_url3.fileURLToPath)(
|
|
669
|
+
_workerFilename = typeof __filename !== "undefined" ? __filename : (0, import_node_url3.fileURLToPath)(__importMetaUrl);
|
|
669
670
|
}
|
|
670
671
|
});
|
|
671
672
|
|
|
@@ -757,8 +758,8 @@ function getRuntimeDir() {
|
|
|
757
758
|
if (typeof __dirname !== "undefined" && __dirname.length > 0) {
|
|
758
759
|
return __dirname;
|
|
759
760
|
}
|
|
760
|
-
if (typeof
|
|
761
|
-
return import_node_path5.default.dirname((0, import_node_url4.fileURLToPath)(
|
|
761
|
+
if (typeof import_meta2 !== "undefined" && __importMetaUrl) {
|
|
762
|
+
return import_node_path5.default.dirname((0, import_node_url4.fileURLToPath)(__importMetaUrl));
|
|
762
763
|
}
|
|
763
764
|
return process.cwd();
|
|
764
765
|
}
|
|
@@ -767,8 +768,8 @@ function resolveScannerWorkerModulePath() {
|
|
|
767
768
|
if (typeof __dirname !== "undefined" && __dirname.length > 0) {
|
|
768
769
|
return __dirname;
|
|
769
770
|
}
|
|
770
|
-
if (typeof
|
|
771
|
-
return import_node_path5.default.dirname((0, import_node_url4.fileURLToPath)(
|
|
771
|
+
if (typeof import_meta2 !== "undefined" && __importMetaUrl) {
|
|
772
|
+
return import_node_path5.default.dirname((0, import_node_url4.fileURLToPath)(__importMetaUrl));
|
|
772
773
|
}
|
|
773
774
|
return process.cwd();
|
|
774
775
|
})();
|
|
@@ -1041,7 +1042,7 @@ async function scanWorkspaceAsync(rootDir, options = {}) {
|
|
|
1041
1042
|
return scanWorkspace(rootDir, normalizedOptions);
|
|
1042
1043
|
}
|
|
1043
1044
|
}
|
|
1044
|
-
var import_node_fs3, import_node_module2, import_node_path5, import_node_url4, import_node_worker_threads2,
|
|
1045
|
+
var import_node_fs3, import_node_module2, import_node_path5, import_node_url4, import_node_worker_threads2, import_meta2, log2, SCAN_WORKER_TIMEOUT_MS, createNativeParserLoader, nativeParserLoader, DEFAULT_EXTENSIONS, DEFAULT_IGNORES;
|
|
1045
1046
|
var init_src2 = __esm({
|
|
1046
1047
|
"packages/domain/scanner/src/index.ts"() {
|
|
1047
1048
|
"use strict";
|
|
@@ -1057,7 +1058,7 @@ var init_src2 = __esm({
|
|
|
1057
1058
|
init_schemas();
|
|
1058
1059
|
init_schemas();
|
|
1059
1060
|
init_native_bridge();
|
|
1060
|
-
|
|
1061
|
+
import_meta2 = {};
|
|
1061
1062
|
log2 = createLogger("scanner");
|
|
1062
1063
|
SCAN_WORKER_TIMEOUT_MS = 12e4;
|
|
1063
1064
|
createNativeParserLoader = () => {
|
|
@@ -1193,7 +1194,6 @@ function sanitizeFrequentThreshold(value) {
|
|
|
1193
1194
|
}
|
|
1194
1195
|
|
|
1195
1196
|
// packages/domain/analyzer/src/binding.ts
|
|
1196
|
-
var import_meta5 = {};
|
|
1197
1197
|
var isAnalyzerModule = (module2) => {
|
|
1198
1198
|
const candidate = module2;
|
|
1199
1199
|
return typeof candidate?.analyzeClasses === "function" || typeof candidate?.analyzeClassesWorkspace === "function";
|
|
@@ -1205,7 +1205,7 @@ var createAnalyzerBindingLoader = () => {
|
|
|
1205
1205
|
_state.bindingPromise = (async () => {
|
|
1206
1206
|
const runtimeDir = resolveRuntimeDir(
|
|
1207
1207
|
typeof __dirname === "string" ? __dirname : void 0,
|
|
1208
|
-
|
|
1208
|
+
__importMetaUrl
|
|
1209
1209
|
);
|
|
1210
1210
|
const candidates = resolveNativeBindingCandidates({
|
|
1211
1211
|
runtimeDir,
|
|
@@ -1248,7 +1248,7 @@ async function requireNativeBinding() {
|
|
|
1248
1248
|
if (binding?.analyzeClasses) return binding;
|
|
1249
1249
|
const runtimeDir = resolveRuntimeDir(
|
|
1250
1250
|
typeof __dirname === "string" ? __dirname : void 0,
|
|
1251
|
-
|
|
1251
|
+
__importMetaUrl
|
|
1252
1252
|
);
|
|
1253
1253
|
const candidates = resolveNativeBindingCandidates({
|
|
1254
1254
|
runtimeDir,
|