tailwind-styled-v4 5.0.23 → 5.0.24

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/next.mjs CHANGED
@@ -2412,7 +2412,13 @@ var init_src = __esm({
2412
2412
  const cssChunks = [];
2413
2413
  const stateRules = extractAndGenerateStateCss(source, filepath);
2414
2414
  if (stateRules.length > 0) {
2415
- cssChunks.push(stateRules.map((r) => r.cssRule).join("\n"));
2415
+ const resolvedRules = stateRules.filter((r) => {
2416
+ const decl = r.declarations.trim();
2417
+ return decl.length === 0 || decl.includes(":");
2418
+ });
2419
+ if (resolvedRules.length > 0) {
2420
+ cssChunks.push(resolvedRules.map((r) => r.cssRule).join("\n"));
2421
+ }
2416
2422
  }
2417
2423
  const containerCss = extractContainerCssFromSource(source);
2418
2424
  if (containerCss) cssChunks.push(containerCss);