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/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 (
|
|
239
|
-
return
|
|
240
|
+
if (false) {
|
|
241
|
+
return path2.dirname(fileURLToPath2(__importMetaUrl));
|
|
240
242
|
}
|
|
241
243
|
return process.cwd();
|
|
242
244
|
}
|
|
@@ -441,14 +443,13 @@ 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, 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
|
-
import_node_path2 =
|
|
450
|
+
import_node_path2 = require("path");
|
|
449
451
|
import_node_url2 = require("url");
|
|
450
452
|
init_src();
|
|
451
|
-
import_meta2 = {};
|
|
452
453
|
log = createDebugLogger("scanner:native");
|
|
453
454
|
isValidScannerBinding = (module2) => {
|
|
454
455
|
const candidate = module2;
|
|
@@ -638,7 +639,7 @@ async function scanWorkspaceParallel(rootDir, options = {}) {
|
|
|
638
639
|
}
|
|
639
640
|
return mergeResults(allResults);
|
|
640
641
|
}
|
|
641
|
-
var import_node_worker_threads, import_node_path4, import_node_os, import_node_url3,
|
|
642
|
+
var import_node_worker_threads, import_node_path4, import_node_os, import_node_url3, PARALLEL_THRESHOLD, DEFAULT_CHUNK_SIZE, _workerFilename;
|
|
642
643
|
var init_parallel_scanner = __esm({
|
|
643
644
|
"packages/domain/scanner/src/parallel-scanner.ts"() {
|
|
644
645
|
"use strict";
|
|
@@ -648,7 +649,6 @@ var init_parallel_scanner = __esm({
|
|
|
648
649
|
import_node_url3 = require("url");
|
|
649
650
|
init_src2();
|
|
650
651
|
init_native_bridge();
|
|
651
|
-
import_meta3 = {};
|
|
652
652
|
PARALLEL_THRESHOLD = 50;
|
|
653
653
|
DEFAULT_CHUNK_SIZE = 150;
|
|
654
654
|
if (!import_node_worker_threads.isMainThread && import_node_worker_threads.parentPort) {
|
|
@@ -665,7 +665,7 @@ var init_parallel_scanner = __esm({
|
|
|
665
665
|
import_node_worker_threads.parentPort.postMessage(msg);
|
|
666
666
|
}
|
|
667
667
|
}
|
|
668
|
-
_workerFilename = typeof __filename !== "undefined" ? __filename : (0, import_node_url3.fileURLToPath)(
|
|
668
|
+
_workerFilename = typeof __filename !== "undefined" ? __filename : (0, import_node_url3.fileURLToPath)(__importMetaUrl);
|
|
669
669
|
}
|
|
670
670
|
});
|
|
671
671
|
|
|
@@ -757,8 +757,8 @@ function getRuntimeDir() {
|
|
|
757
757
|
if (typeof __dirname !== "undefined" && __dirname.length > 0) {
|
|
758
758
|
return __dirname;
|
|
759
759
|
}
|
|
760
|
-
if (
|
|
761
|
-
return import_node_path5.default.dirname((
|
|
760
|
+
if (false) {
|
|
761
|
+
return import_node_path5.default.dirname(fileURLToPath4(__importMetaUrl));
|
|
762
762
|
}
|
|
763
763
|
return process.cwd();
|
|
764
764
|
}
|
|
@@ -767,8 +767,8 @@ function resolveScannerWorkerModulePath() {
|
|
|
767
767
|
if (typeof __dirname !== "undefined" && __dirname.length > 0) {
|
|
768
768
|
return __dirname;
|
|
769
769
|
}
|
|
770
|
-
if (
|
|
771
|
-
return import_node_path5.default.dirname((
|
|
770
|
+
if (false) {
|
|
771
|
+
return import_node_path5.default.dirname(fileURLToPath4(__importMetaUrl));
|
|
772
772
|
}
|
|
773
773
|
return process.cwd();
|
|
774
774
|
})();
|
|
@@ -1041,7 +1041,7 @@ async function scanWorkspaceAsync(rootDir, options = {}) {
|
|
|
1041
1041
|
return scanWorkspace(rootDir, normalizedOptions);
|
|
1042
1042
|
}
|
|
1043
1043
|
}
|
|
1044
|
-
var import_node_fs3, import_node_module2, import_node_path5, import_node_url4, import_node_worker_threads2,
|
|
1044
|
+
var import_node_fs3, import_node_module2, import_node_path5, import_node_url4, import_node_worker_threads2, log2, SCAN_WORKER_TIMEOUT_MS, createNativeParserLoader, nativeParserLoader, DEFAULT_EXTENSIONS, DEFAULT_IGNORES;
|
|
1045
1045
|
var init_src2 = __esm({
|
|
1046
1046
|
"packages/domain/scanner/src/index.ts"() {
|
|
1047
1047
|
"use strict";
|
|
@@ -1057,7 +1057,6 @@ var init_src2 = __esm({
|
|
|
1057
1057
|
init_schemas();
|
|
1058
1058
|
init_schemas();
|
|
1059
1059
|
init_native_bridge();
|
|
1060
|
-
import_meta4 = {};
|
|
1061
1060
|
log2 = createLogger("scanner");
|
|
1062
1061
|
SCAN_WORKER_TIMEOUT_MS = 12e4;
|
|
1063
1062
|
createNativeParserLoader = () => {
|
|
@@ -1193,7 +1192,6 @@ function sanitizeFrequentThreshold(value) {
|
|
|
1193
1192
|
}
|
|
1194
1193
|
|
|
1195
1194
|
// packages/domain/analyzer/src/binding.ts
|
|
1196
|
-
var import_meta5 = {};
|
|
1197
1195
|
var isAnalyzerModule = (module2) => {
|
|
1198
1196
|
const candidate = module2;
|
|
1199
1197
|
return typeof candidate?.analyzeClasses === "function" || typeof candidate?.analyzeClassesWorkspace === "function";
|
|
@@ -1205,7 +1203,7 @@ var createAnalyzerBindingLoader = () => {
|
|
|
1205
1203
|
_state.bindingPromise = (async () => {
|
|
1206
1204
|
const runtimeDir = resolveRuntimeDir(
|
|
1207
1205
|
typeof __dirname === "string" ? __dirname : void 0,
|
|
1208
|
-
|
|
1206
|
+
__importMetaUrl
|
|
1209
1207
|
);
|
|
1210
1208
|
const candidates = resolveNativeBindingCandidates({
|
|
1211
1209
|
runtimeDir,
|
|
@@ -1248,7 +1246,7 @@ async function requireNativeBinding() {
|
|
|
1248
1246
|
if (binding?.analyzeClasses) return binding;
|
|
1249
1247
|
const runtimeDir = resolveRuntimeDir(
|
|
1250
1248
|
typeof __dirname === "string" ? __dirname : void 0,
|
|
1251
|
-
|
|
1249
|
+
__importMetaUrl
|
|
1252
1250
|
);
|
|
1253
1251
|
const candidates = resolveNativeBindingCandidates({
|
|
1254
1252
|
runtimeDir,
|