tailwind-styled-v4 5.0.40 → 5.0.411
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 +43 -16
- package/dist/analyzer.js.map +1 -1
- package/dist/analyzer.mjs +104 -72
- package/dist/analyzer.mjs.map +1 -1
- package/dist/animate.js +33 -7
- package/dist/animate.js.map +1 -1
- package/dist/animate.mjs +55 -22
- package/dist/animate.mjs.map +1 -1
- package/dist/atomic.js +39 -10
- package/dist/atomic.js.map +1 -1
- package/dist/atomic.mjs +56 -23
- package/dist/atomic.mjs.map +1 -1
- package/dist/cli.js +222 -38
- package/dist/cli.js.map +1 -1
- package/dist/cli.mjs +321 -203
- package/dist/cli.mjs.map +1 -1
- package/dist/compiler.js +57 -14
- package/dist/compiler.js.map +1 -1
- package/dist/compiler.mjs +71 -28
- package/dist/compiler.mjs.map +1 -1
- package/dist/dashboard.js +0 -1
- package/dist/dashboard.js.map +1 -1
- package/dist/devtools.js +16 -2
- package/dist/devtools.js.map +1 -1
- package/dist/devtools.mjs +21 -2
- package/dist/devtools.mjs.map +1 -1
- package/dist/engine.js +141 -51
- package/dist/engine.js.map +1 -1
- package/dist/engine.mjs +238 -148
- package/dist/engine.mjs.map +1 -1
- package/dist/index.js +50 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +74 -29
- package/dist/index.mjs.map +1 -1
- package/dist/next.js +98 -37
- package/dist/next.js.map +1 -1
- package/dist/next.mjs +177 -115
- package/dist/next.mjs.map +1 -1
- package/dist/plugin-api.js +0 -1
- package/dist/plugin-api.js.map +1 -1
- package/dist/plugin-registry.js +6 -2
- package/dist/plugin-registry.js.map +1 -1
- package/dist/plugin-registry.mjs +9 -2
- package/dist/plugin-registry.mjs.map +1 -1
- package/dist/plugin.js +0 -1
- package/dist/plugin.js.map +1 -1
- package/dist/preset.js +0 -1
- package/dist/preset.js.map +1 -1
- package/dist/rspack.js +89 -6
- package/dist/rspack.js.map +1 -1
- package/dist/rspack.mjs +39 -18
- package/dist/rspack.mjs.map +1 -1
- package/dist/runtime-css.js +0 -1
- package/dist/runtime-css.js.map +1 -1
- package/dist/runtime.js +0 -1
- package/dist/runtime.js.map +1 -1
- package/dist/scanner.js +29 -11
- package/dist/scanner.js.map +1 -1
- package/dist/scanner.mjs +84 -61
- package/dist/scanner.mjs.map +1 -1
- package/dist/shared.js +91 -35
- package/dist/shared.js.map +1 -1
- package/dist/shared.mjs +122 -64
- package/dist/shared.mjs.map +1 -1
- package/dist/storybook-addon.js +0 -1
- package/dist/storybook-addon.js.map +1 -1
- package/dist/svelte.js +40 -8
- package/dist/svelte.js.map +1 -1
- package/dist/svelte.mjs +57 -28
- package/dist/svelte.mjs.map +1 -1
- package/dist/syntax.js +7 -3
- package/dist/syntax.js.map +1 -1
- package/dist/syntax.mjs +30 -23
- package/dist/syntax.mjs.map +1 -1
- package/dist/testing.js +0 -1
- package/dist/testing.js.map +1 -1
- package/dist/theme.js +23 -5
- package/dist/theme.js.map +1 -1
- package/dist/theme.mjs +41 -17
- package/dist/theme.mjs.map +1 -1
- package/dist/turbopackLoader.js +58 -14
- package/dist/turbopackLoader.js.map +1 -1
- package/dist/turbopackLoader.mjs +89 -45
- package/dist/turbopackLoader.mjs.map +1 -1
- package/dist/tw.js +224 -38
- package/dist/tw.js.map +1 -1
- package/dist/tw.mjs +321 -203
- package/dist/tw.mjs.map +1 -1
- package/dist/vite.js +132 -50
- package/dist/vite.js.map +1 -1
- package/dist/vite.mjs +226 -143
- package/dist/vite.mjs.map +1 -1
- package/dist/vue.js +40 -8
- package/dist/vue.js.map +1 -1
- package/dist/vue.mjs +57 -28
- package/dist/vue.mjs.map +1 -1
- package/dist/webpackLoader.js +40 -10
- package/dist/webpackLoader.js.map +1 -1
- package/dist/webpackLoader.mjs +59 -27
- package/dist/webpackLoader.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
const __importMetaUrl = typeof __filename !== "undefined" ? require("node:url").pathToFileURL(__filename).href : "file://unknown";
|
|
2
1
|
/* tailwind-styled-v4 v5.0.4 | MIT | https://github.com/dictionar32/tailwind-styled-v4 */
|
|
3
2
|
"use strict";
|
|
4
3
|
var __create = Object.create;
|
|
@@ -32,7 +31,26 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
32
31
|
));
|
|
33
32
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
34
33
|
|
|
34
|
+
// node_modules/tsup/assets/cjs_shims.js
|
|
35
|
+
var getImportMetaUrl, importMetaUrl;
|
|
36
|
+
var init_cjs_shims = __esm({
|
|
37
|
+
"node_modules/tsup/assets/cjs_shims.js"() {
|
|
38
|
+
"use strict";
|
|
39
|
+
getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.tagName.toUpperCase() === "SCRIPT" ? document.currentScript.src : new URL("main.js", document.baseURI).href;
|
|
40
|
+
importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
|
|
35
44
|
// packages/domain/shared/src/native-resolution.ts
|
|
45
|
+
function _safeCreateRequire() {
|
|
46
|
+
if (typeof import_meta !== "undefined" && importMetaUrl && !importMetaUrl.includes("unknown")) {
|
|
47
|
+
return (0, import_node_module.createRequire)(importMetaUrl);
|
|
48
|
+
}
|
|
49
|
+
if (typeof __filename !== "undefined") {
|
|
50
|
+
return (0, import_node_module.createRequire)(__filename);
|
|
51
|
+
}
|
|
52
|
+
return (0, import_node_module.createRequire)(new URL(`file://${process.cwd()}/`).href);
|
|
53
|
+
}
|
|
36
54
|
function platformKey() {
|
|
37
55
|
if (isBrowser) return "browser";
|
|
38
56
|
return `${process.platform}-${process.arch}`;
|
|
@@ -114,17 +132,17 @@ function resolveNativeBinary(runtimeDir) {
|
|
|
114
132
|
}
|
|
115
133
|
return { path: null, source: "not-found", platform, tried };
|
|
116
134
|
}
|
|
117
|
-
var import_node_module, fs, path, isBrowser, _require, PLATFORM_MAP;
|
|
135
|
+
var import_node_module, fs, path, import_meta, isBrowser, _require, PLATFORM_MAP;
|
|
118
136
|
var init_native_resolution = __esm({
|
|
119
137
|
"packages/domain/shared/src/native-resolution.ts"() {
|
|
120
138
|
"use strict";
|
|
139
|
+
init_cjs_shims();
|
|
121
140
|
import_node_module = require("module");
|
|
122
141
|
fs = __toESM(require("fs"));
|
|
123
142
|
path = __toESM(require("path"));
|
|
143
|
+
import_meta = {};
|
|
124
144
|
isBrowser = typeof window !== "undefined" || typeof document !== "undefined";
|
|
125
|
-
_require = (
|
|
126
|
-
typeof require !== "undefined" ? typeof __filename !== "undefined" ? `file://${__filename}` : "file://unknown" : __importMetaUrl
|
|
127
|
-
);
|
|
145
|
+
_require = _safeCreateRequire();
|
|
128
146
|
PLATFORM_MAP = {
|
|
129
147
|
"linux-x64": ["@tailwind-styled/native-linux-x64-gnu", "@tailwind-styled/native-linux-x64"],
|
|
130
148
|
"linux-arm64": ["@tailwind-styled/native-linux-arm64-gnu", "@tailwind-styled/native-linux-arm64"],
|
|
@@ -141,6 +159,7 @@ var import_node_crypto, import_node_fs, import_node_path, import_node_url, impor
|
|
|
141
159
|
var init_src = __esm({
|
|
142
160
|
"packages/domain/shared/src/index.ts"() {
|
|
143
161
|
"use strict";
|
|
162
|
+
init_cjs_shims();
|
|
144
163
|
import_node_crypto = require("crypto");
|
|
145
164
|
import_node_fs = __toESM(require("fs"));
|
|
146
165
|
import_node_path = __toESM(require("path"));
|
|
@@ -148,7 +167,7 @@ var init_src = __esm({
|
|
|
148
167
|
import_node_module2 = require("module");
|
|
149
168
|
init_native_resolution();
|
|
150
169
|
_require2 = (0, import_node_module2.createRequire)(
|
|
151
|
-
typeof __filename !== "undefined" ? `file://${__filename}` :
|
|
170
|
+
typeof __filename !== "undefined" ? `file://${__filename}` : importMetaUrl ?? "file://unknown"
|
|
152
171
|
);
|
|
153
172
|
}
|
|
154
173
|
});
|
|
@@ -199,22 +218,30 @@ __export(umbrella_exports, {
|
|
|
199
218
|
withSubComponents: () => withSubComponents
|
|
200
219
|
});
|
|
201
220
|
module.exports = __toCommonJS(umbrella_exports);
|
|
221
|
+
init_cjs_shims();
|
|
202
222
|
|
|
203
223
|
// packages/domain/core/src/twProxy.ts
|
|
224
|
+
init_cjs_shims();
|
|
204
225
|
var import_react2 = __toESM(require("react"), 1);
|
|
205
226
|
|
|
206
227
|
// packages/domain/core/src/createComponent.ts
|
|
228
|
+
init_cjs_shims();
|
|
207
229
|
var import_react = __toESM(require("react"), 1);
|
|
208
230
|
|
|
231
|
+
// packages/domain/core/src/containerQuery.ts
|
|
232
|
+
init_cjs_shims();
|
|
233
|
+
|
|
209
234
|
// packages/domain/core/src/native.ts
|
|
235
|
+
init_cjs_shims();
|
|
210
236
|
var import_node_module3 = require("module");
|
|
211
237
|
var import_node_path2 = require("path");
|
|
212
238
|
var import_node_url2 = require("url");
|
|
213
239
|
init_src();
|
|
240
|
+
var import_meta2 = {};
|
|
214
241
|
var isBrowser2 = typeof window !== "undefined" || typeof document !== "undefined";
|
|
215
242
|
var NATIVE_UNAVAILABLE_MESSAGE = "[tailwind-styled/core] Native binding is required but not available.\nPlease ensure you have run: npm run build:rust";
|
|
216
243
|
var _nodeRequire = (0, import_node_module3.createRequire)(
|
|
217
|
-
typeof __filename !== "undefined" ? `file://${__filename}` :
|
|
244
|
+
typeof __filename !== "undefined" ? `file://${__filename}` : typeof import_meta2 !== "undefined" && importMetaUrl ? importMetaUrl : "file://unknown"
|
|
218
245
|
);
|
|
219
246
|
var _loadNative = (path3) => _nodeRequire(path3);
|
|
220
247
|
var nativeBinding = null;
|
|
@@ -230,7 +257,7 @@ var getBinding = () => {
|
|
|
230
257
|
bindingLoadAttempted = true;
|
|
231
258
|
try {
|
|
232
259
|
const runtimeDir = isBrowser2 ? "" : (0, import_node_path2.dirname)(
|
|
233
|
-
typeof __filename !== "undefined" ? __filename :
|
|
260
|
+
typeof __filename !== "undefined" ? __filename : typeof import_meta2 !== "undefined" && importMetaUrl ? (0, import_node_url2.fileURLToPath)(importMetaUrl) : process.cwd()
|
|
234
261
|
);
|
|
235
262
|
const result = isBrowser2 ? { path: null, source: "not-found", platform: "browser", tried: [] } : resolveNativeBinary(runtimeDir);
|
|
236
263
|
if (result.path && result.path.endsWith(".node")) {
|
|
@@ -370,6 +397,7 @@ function getContainerRegistry() {
|
|
|
370
397
|
}
|
|
371
398
|
|
|
372
399
|
// packages/domain/core/src/merge.ts
|
|
400
|
+
init_cjs_shims();
|
|
373
401
|
function createTwMerge(_options = {}) {
|
|
374
402
|
return function twMerge2(...classLists) {
|
|
375
403
|
const inputs = [];
|
|
@@ -396,6 +424,7 @@ function mergeWithRules(rules, ...classLists) {
|
|
|
396
424
|
}
|
|
397
425
|
|
|
398
426
|
// packages/domain/core/src/stateEngine.ts
|
|
427
|
+
init_cjs_shims();
|
|
399
428
|
var stateRegistry = /* @__PURE__ */ new Map();
|
|
400
429
|
if (typeof window !== "undefined") {
|
|
401
430
|
window.__TW_STATE_REGISTRY__ = stateRegistry;
|
|
@@ -1050,6 +1079,7 @@ var tw = Object.assign(twCallable, tagFactories, {
|
|
|
1050
1079
|
});
|
|
1051
1080
|
|
|
1052
1081
|
// packages/domain/core/src/cv.ts
|
|
1082
|
+
init_cjs_shims();
|
|
1053
1083
|
var __generatedRegistry = {};
|
|
1054
1084
|
function registerVariantTable(componentId, table) {
|
|
1055
1085
|
__generatedRegistry[componentId] = table;
|
|
@@ -1185,6 +1215,7 @@ function cv(config, componentId) {
|
|
|
1185
1215
|
}
|
|
1186
1216
|
|
|
1187
1217
|
// packages/domain/core/src/cx.ts
|
|
1218
|
+
init_cjs_shims();
|
|
1188
1219
|
function cn(...inputs) {
|
|
1189
1220
|
const strings = [];
|
|
1190
1221
|
for (const item of inputs) {
|
|
@@ -1215,6 +1246,7 @@ function cx(...inputs) {
|
|
|
1215
1246
|
var cxm = cx;
|
|
1216
1247
|
|
|
1217
1248
|
// packages/domain/core/src/styledSystem.ts
|
|
1249
|
+
init_cjs_shims();
|
|
1218
1250
|
function tokenVarName(prefix, group, name) {
|
|
1219
1251
|
return `--${prefix}-${group}-${name}`;
|
|
1220
1252
|
}
|
|
@@ -1364,6 +1396,7 @@ function createStyledSystem(config) {
|
|
|
1364
1396
|
}
|
|
1365
1397
|
|
|
1366
1398
|
// packages/domain/core/src/styled.ts
|
|
1399
|
+
init_cjs_shims();
|
|
1367
1400
|
function resolveVariantClass(options, props) {
|
|
1368
1401
|
const out = [];
|
|
1369
1402
|
const variants = options.variants ?? {};
|
|
@@ -1395,6 +1428,7 @@ function styled(options) {
|
|
|
1395
1428
|
}
|
|
1396
1429
|
|
|
1397
1430
|
// packages/domain/core/src/twTheme.ts
|
|
1431
|
+
init_cjs_shims();
|
|
1398
1432
|
function cssVar(varName, fallback) {
|
|
1399
1433
|
const name = varName.startsWith("--") ? varName : `--${varName}`;
|
|
1400
1434
|
return fallback ? `var(${name}, ${fallback})` : `var(${name})`;
|
|
@@ -1459,7 +1493,14 @@ var v4Tokens = {
|
|
|
1459
1493
|
fontMono: twVar("font", "font-mono")
|
|
1460
1494
|
};
|
|
1461
1495
|
|
|
1496
|
+
// packages/domain/core/src/liveTokenEngine.ts
|
|
1497
|
+
init_cjs_shims();
|
|
1498
|
+
|
|
1499
|
+
// packages/domain/theme/src/liveTokens.ts
|
|
1500
|
+
init_cjs_shims();
|
|
1501
|
+
|
|
1462
1502
|
// packages/domain/theme/src/liveTokenEngine.ts
|
|
1503
|
+
init_cjs_shims();
|
|
1463
1504
|
var import_react3 = __toESM(require("react"), 1);
|
|
1464
1505
|
var TOKEN_ENGINE_KEY = "__TW_TOKEN_ENGINE__";
|
|
1465
1506
|
function tokenVar(name) {
|
|
@@ -1630,6 +1671,7 @@ if (typeof window !== "undefined") {
|
|
|
1630
1671
|
}
|
|
1631
1672
|
|
|
1632
1673
|
// packages/domain/core/src/registry.ts
|
|
1674
|
+
init_cjs_shims();
|
|
1633
1675
|
var import_react4 = __toESM(require("react"), 1);
|
|
1634
1676
|
var subComponentRegistry = /* @__PURE__ */ new Map();
|
|
1635
1677
|
function registerSubComponent(entry) {
|